Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 385 for S1 (0.12 sec)

  1. test/typeparam/interfacearg.go

    func F() {
    	v := _S[I]{}
    	if v.x != nil {
    		panic(v)
    	}
    }
    
    // Testing the various combinations of method expressions.
    type S1 struct{}
    
    func (*S1) M() {}
    
    type S2 struct{}
    
    func (S2) M() {}
    
    func _F1[T interface{ M() }](t T) {
    	_ = T.M
    }
    
    func F2() {
    	_F1(&S1{})
    	_F1(S2{})
    	_F1(&S2{})
    }
    
    func main() {
    	F()
    	F2()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 692 bytes
    - Viewed (0)
  2. test/fixedbugs/issue8606.go

    		{true, T3{i: b, s: "foo"}, T3{i: b, s: "bar"}},
    		{false, T3{s: "foo", j: b}, T3{s: "bar", j: b}},
    		{true, T3{i: b, s: "fooz"}, T3{i: b, s: "bar"}},
    		{false, T3{s: "fooz", j: b}, T3{s: "bar", j: b}},
    		{true, A{s1, s2}, A{s2, s1}},
    		{true, s1, s2},
    		{false, S4{[1000]byte{0}, func() {}}, S4{[1000]byte{1}, func() {}}},
    	} {
    		f := func() {
    			defer func() {
    				if recover() != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/asan_linkerx/main.go

    func pstring(s *string) {
    	println(*s)
    }
    
    func main() {
    	all := []*string{
    		&S1, &S2, &S3, &S4, &S5, &S6, &S7, &S8, &S9, &S10,
    		&p.S1, &p.S2, &p.S3, &p.S4, &p.S5, &p.S6, &p.S7, &p.S8, &p.S9, &p.S10,
    	}
    	for _, ps := range all {
    		pstring(ps)
    	}
    }
    
    var S1 string
    var S2 string
    var S3 string
    var S4 string
    var S5 string
    var S6 string
    var S7 string
    var S8 string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 471 bytes
    - Viewed (0)
  4. src/io/fs/readfile_test.go

    }
    
    func TestReadFilePath(t *testing.T) {
    	fsys := os.DirFS(t.TempDir())
    	_, err1 := ReadFile(fsys, "non-existent")
    	_, err2 := ReadFile(struct{ FS }{fsys}, "non-existent")
    	if s1, s2 := errorPath(err1), errorPath(err2); s1 != s2 {
    		t.Fatalf("s1: %s != s2: %s", s1, s2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/linalg.go

    		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr |
    		~float32 | ~float64 |
    		~complex64 | ~complex128
    }
    
    func DotProduct[T Numeric](s1, s2 []T) T {
    	if len(s1) != len(s2) {
    		panic("DotProduct: slices of unequal length")
    	}
    	var r T
    	for i := range s1 {
    		r += s1[i] * s2[i]
    	}
    	return r
    }
    
    // NumericAbs matches numeric types with an Abs method.
    type NumericAbs[T any] interface {
    	Numeric
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. test/fixedbugs/issue8620.go

    // Issue 8620. Used to fail with -race.
    
    package main
    
    func min(a, b int) int {
    	if a < b {
    		return a
    	}
    	return b
    }
    
    func test(s1, s2 []struct{}) {
    	n := min(len(s1), len(s2))
    	if copy(s1, s2) != n {
    		panic("bad copy result")
    	}
    }
    
    func main() {
    	var b [100]struct{}
    	test(b[:], b[:])
    	test(b[1:], b[:])
    	test(b[:], b[2:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 496 bytes
    - Viewed (0)
  7. test/fixedbugs/bug021.go

    // run
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	s1 := "hi";
    	s2 := "ho";
    	s1 += s2;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 235 bytes
    - Viewed (0)
  8. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultSnapshotHierarchyTest.groovy

            expect:
            def s1 = updateDir(single, dir2)
            assertDirectorySnapshot(s1, dir1)
            assertDirectorySnapshot(s1, child)
            assertDirectorySnapshot(s1, dir2)
            assertHasNoMetadata(s1, dir3)
            assertHasNoMetadata(s1, tooFew)
            assertHasNoMetadata(s1, tooMany)
            assertPartialDirectoryNode(s1, parent)
            flatten(s1) == [parent.path, "1:dir1", "2:child1", "1:dir2"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  9. test/fixedbugs/bug437.dir/one.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package one
    
    type I1 interface {
    	f()
    }
    
    type S1 struct {
    }
    
    func (s S1) f() {
    }
    
    func F1(i1 I1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 261 bytes
    - Viewed (0)
  10. src/crypto/sha256/sha256block_amd64.s

    	;                                     \
    	XORL     y1, y0;                      \ // y0 = (e>>25) ^ (e>>11)					// S1
    	XORL     g, y2;                       \ // y2 = f^g	// CH
    	VPADDD   XDWORD0, XTMP0, XTMP0;       \ // XTMP0 = W[-7] + W[-16]	// y1 = (e >> 6)	// S1
    	RORXL    $6, e, y1;                   \ // y1 = (e >> 6)						// S1
    	;                                     \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 47.3K bytes
    - Viewed (0)
Back to top