Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for t2 (0.15 sec)

  1. src/cmd/cgo/internal/test/issue1435.go

    		{call: "Setreuid(1,0)", fn: func() error { return syscall.Setreuid(1, 0) }, filter: "Uid:", expect: "\t1\t0\t0\t0"},
    		{call: "Setreuid(0,2)", fn: func() error { return syscall.Setreuid(0, 2) }, filter: "Uid:", expect: "\t0\t2\t2\t2"},
    		{call: "Setreuid(0,0)", fn: func() error { return syscall.Setreuid(0, 0) }, filter: "Uid:", expect: "\t0\t0\t0\t0"},
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. src/cmd/api/testdata/src/pkg/p4/p4.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p4
    
    type Pair[T1 interface{ M() }, T2 ~int] struct {
    	f1 T1
    	f2 T2
    }
    
    func NewPair[T1 interface{ M() }, T2 ~int](v1 T1, v2 T2) Pair[T1, T2] {
    	return Pair[T1, T2]{f1: v1, f2: v2}
    }
    
    func (p Pair[X1, _]) First() X1 {
    	return p.f1
    }
    
    func (p Pair[_, X2]) Second() X2 {
    	return p.f2
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 552 bytes
    - Viewed (0)
  3. src/arena/arena_test.go

    // license that can be found in the LICENSE file.
    
    //go:build goexperiment.arenas
    
    package arena_test
    
    import (
    	"arena"
    	"testing"
    )
    
    type T1 struct {
    	n int
    }
    type T2 [1 << 20]byte // 1MiB
    
    func TestSmoke(t *testing.T) {
    	a := arena.NewArena()
    	defer a.Free()
    
    	tt := arena.New[T1](a)
    	tt.n = 1
    
    	ts := arena.MakeSlice[T1](a, 99, 100)
    	if len(ts) != 99 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 742 bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    				done <- true
    			}(j, ft)
    			n++
    		}
    	}
    	for ; n > 0; n-- {
    		<-done
    	}
    }
    
    func equalTimeAndZone(t1, t2 time.Time) bool {
    	name1, offset1 := t1.Zone()
    	name2, offset2 := t2.Zone()
    	return t1.Equal(t2) && name1 == name2 && offset1 == offset2
    }
    
    func readTestFile(t *testing.T, zt ZipTest, ft ZipTestFile, f *File, raw []byte) {
    	if f.Name != ft.Name {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    type T0 struct {
    	x int
    }
    
    func (*T0) M0()
    
    type T1 struct {
    	y int
    }
    
    func (T1) M1()
    
    type T2 struct {
    	z int
    	T1
    	*T0
    }
    
    func (*T2) M2()
    
    type Q *T2
    
    var t T2     // with t.T0 != nil
    var p *T2    // with p != nil and (*p).T0 != nil
    var q Q = p
    </pre>
    
    <p>
    one may write:
    </p>
    
    <pre>
    t.z          // t.z
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/arch/arch.go

    	register["RA"] = riscv.REG_RA
    	register["SP"] = riscv.REG_SP
    	register["GP"] = riscv.REG_GP
    	register["TP"] = riscv.REG_TP
    	register["T0"] = riscv.REG_T0
    	register["T1"] = riscv.REG_T1
    	register["T2"] = riscv.REG_T2
    	register["S0"] = riscv.REG_S0
    	register["S1"] = riscv.REG_S1
    	register["A0"] = riscv.REG_A0
    	register["A1"] = riscv.REG_A1
    	register["A2"] = riscv.REG_A2
    	register["A3"] = riscv.REG_A3
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  7. doc/go_spec.html

    type T0 struct {
    	x int
    }
    
    func (*T0) M0()
    
    type T1 struct {
    	y int
    }
    
    func (T1) M1()
    
    type T2 struct {
    	z int
    	T1
    	*T0
    }
    
    func (*T2) M2()
    
    type Q *T2
    
    var t T2     // with t.T0 != nil
    var p *T2    // with p != nil and (*p).T0 != nil
    var q Q = p
    </pre>
    
    <p>
    one may write:
    </p>
    
    <pre>
    t.z          // t.z
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/lex_test.go

    		"argumented macro invoked without arguments",
    		lines(
    			"#define X() foo ",
    			"X()",
    			"X",
    		),
    		"foo.\n.X.\n",
    	},
    	{
    		"multiline macro without arguments",
    		lines(
    			"#define A 1\\",
    			"\t2\\",
    			"\t3",
    			"before",
    			"A",
    			"after",
    		),
    		"before.\n.1.\n.2.\n.3.\n.after.\n",
    	},
    	{
    		"multiline macro with arguments",
    		lines(
    			"#define A(a, b, c) a\\",
    			"\tb\\",
    			"\tc",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    	{"", []string{}},
    	{" ", []string{}},
    	{" \t ", []string{}},
    	{"  abc  ", []string{"abc"}},
    	{"1 2 3 4", []string{"1", "2", "3", "4"}},
    	{"1  2  3  4", []string{"1", "2", "3", "4"}},
    	{"1\t\t2\t\t3\t4", []string{"1", "2", "3", "4"}},
    	{"1\u20002\u20013\u20024", []string{"1", "2", "3", "4"}},
    	{"\u2000\u2001\u2002", []string{}},
    	{"\n™\t™\n", []string{"™", "™"}},
    	{faces, []string{faces}},
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top