Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 385 for S1 (0.02 sec)

  1. src/internal/coverage/slicereader/slr_test.go

    	e64 := uint64(907050301)
    	binary.LittleEndian.PutUint64(bt, e64)
    	b = append(b, bt...)
    
    	b = appendUleb128(b, uint(e32))
    	b = appendUleb128(b, uint(e64))
    	b = appendUleb128(b, 6)
    	s1 := "foobar"
    	s1b := []byte(s1)
    	b = append(b, s1b...)
    	b = appendUleb128(b, 9)
    	s2 := "bazbasher"
    	s2b := []byte(s2)
    	b = append(b, s2b...)
    
    	readStr := func(slr *Reader) string {
    		len := slr.ReadULEB128()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:28 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. test/literal.go

    	var cu1 uint32 = '\U00101234'
    	assert(cu0 == 0x1234, "cu0")
    	assert(cu1 == 0x101234, "cu1")
    
    	// string
    	var s0 string = ""
    	var s1 string = "hellĂ´"
    	assert(s1[0] == 'h', "s1-0")
    	assert(s1[4] == 0xc3, "s1-4")
    	assert(s1[5] == 0xb4, "s1-5")
    	var s2 string = "\a\b\f\n\r\t\v"
    	_, _ = s0, s2
    
    	var s00 string = "\000"
    	var s01 string = "\007"
    	var s02 string = "\377"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loadmacho/ldmacho.go

    			// assign sizes, now that we know symbols in sorted order.
    			for s1 := bld.Sub(); s1 != 0; s1 = l.SubSym(s1) {
    				s1Bld := l.MakeSymbolUpdater(s1)
    				if sub := l.SubSym(s1); sub != 0 {
    					s1Bld.SetSize(l.SymValue(sub) - l.SymValue(s1))
    				} else {
    					dlen := int64(len(l.Data(s)))
    					s1Bld.SetSize(l.SymValue(s) + dlen - l.SymValue(s1))
    				}
    			}
    		}
    
    		if bld.Type() == sym.STEXT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  4. tensorflow/cc/experimental/libtf/impl/string_test.cc

    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(StringTest, TestBasicInterning) {
      String s1("foo");
      String s2("foo");
      EXPECT_EQ(&s1.str(), &s2.str());
    }
    
    }  // namespace impl
    }  // namespace libtf
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 30 17:28:28 UTC 2021
    - 1002 bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/cycles0.go

    	A3 [10]A4
    	A4 A2
    
    	A5 [10]A6
    	A6 *A5
    
    	// slices
    	L0 []L0
    
    	// structs
    	S0 /* ERROR "invalid recursive type: S0 refers to itself" */ struct{ _ S0 }
    	S1 /* ERROR "invalid recursive type: S1 refers to itself" */ struct{ S1 }
    	S2 struct{ _ *S2 }
    	S3 struct{ *S3 }
    
    	S4 /* ERROR "invalid recursive type" */ struct{ S5 }
    	S5 struct{ S6 }
    	S6 S4
    
    	// pointers
    	P0 *P0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue51257.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func f[_ comparable]() {}
    
    type S1 struct{ x int }
    type S2 struct{ x any }
    type S3 struct{ x [10]interface{ m() } }
    
    func _[P1 comparable, P2 S2]() {
    	_ = f[S1]
    	_ = f[S2]
    	_ = f[S3]
    
    	type L1 struct { x P1 }
    	type L2 struct { x P2 }
    	_ = f[L1]
    	_ = f[L2 /* ERROR "L2 does not satisfy comparable" */ ]
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 766 bytes
    - Viewed (0)
  7. test/fixedbugs/issue65893.go

    // compile
    
    // Copyright 2024 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 p
    
    type (
    	s  = struct{ f func(s1) }
    	s1 = struct{ i I }
    )
    
    type I interface {
    	S() *s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 01:45:48 UTC 2024
    - 269 bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue57522.go

    // A simplified version of the code in the original report.
    type S[T any] struct{}
    var V = S[any]{}
    func (fs *S[T]) M(V.M /* ERROR "V.M is not a type" */) {}
    
    // Other minimal reproducers.
    type S1[T any] V1.M /* ERROR "V1.M is not a type" */
    type V1 = S1[any]
    
    type S2[T any] struct{}
    type V2 = S2[any]
    func (fs *S2[T]) M(x V2.M /* ERROR "V2.M is not a type" */ ) {}
    
    // The following still panics, as the selector is reached from check.expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 11 22:29:34 UTC 2023
    - 728 bytes
    - Viewed (0)
  9. src/go/parser/testdata/linalg.go2

    		~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: Thu Oct 28 15:34:22 UTC 2021
    - 2K bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue67547.go

    }
    
    func _[P map[int]int]() {
    	type A = P
    	var m A
    	clear(m) // don't report an error for m
    }
    
    type S1 struct {
    	x int "S1.x"
    }
    
    type S2 struct {
    	x int "S2.x"
    }
    
    func _[P1 S1, P2 S2]() {
    	type A = P1
    	var p A
    	_ = P2(p) // conversion must be valid
    }
    
    func _[P1 S1, P2 S2]() {
    	var p P1
    	type A = P2
    	_ = A(p) // conversion must be valid
    }
    
    func _[P int | string]() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top