Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 385 for S1 (0.03 sec)

  1. test/fixedbugs/bug149.go

    // 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() {
    	var b1 []byte;
    	s1 := string(b1);
    	println(len(s1));  // prints 0
    
    	b2 := ([]byte)(nil);
    	s2 := string(b2);
    	println(len(s2));  // prints 0
    
    	s3 := string(([]byte)(nil));  // does not compile (literal substitution of b2)
    	println(len(s3));
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 506 bytes
    - Viewed (0)
  2. src/internal/bytealg/equal_ppc64x.s

    	BR	memeqbody<>(SB)
    eq:
    	MOVD	$1, R3
    	RET
    
    // Do an efficient memequal for ppc64
    // R3 = s1
    // R4 = s2
    // R5 = len
    // On exit:
    // R3 = return value
    TEXT memeqbody<>(SB),NOSPLIT|NOFRAME,$0-0
    	MOVD	R3, R8		// Move s1 into R8
    	ADD	R5, R3, R9	// &s1[len(s1)]
    	ADD	R5, R4, R10	// &s2[len(s2)]
    	MOVD	$1, R11
    	CMP	R5, $16		// Use GPR checks for check for len <= 16
    	BLE	check0_16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. pkg/kube/multicluster/secretcontroller_test.go

    	c := buildTestController(t, false)
    	c.AddSecret("s0", "c0")
    	c.AddSecret("s1", "c1")
    	c.Run(stop)
    
    	// before sync
    	assert.EventuallyEqual(t, c.controller.ListRemoteClusters, []cluster.DebugInfo{
    		{ID: "config", SyncStatus: "syncing"},
    		{ID: "c0", SecretName: "istio-system/s0", SyncStatus: "syncing"},
    		{ID: "c1", SecretName: "istio-system/s1", SyncStatus: "syncing"},
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo_linux.go

    	procMountsPath = "/proc/mounts"
    )
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    func IsLikelyMountPoint(path string) bool {
    	s1, err := os.Lstat(path)
    	if err != nil {
    		return false
    	}
    
    	// A symlink can never be a mount point
    	if s1.Mode()&os.ModeSymlink != 0 {
    		return false
    	}
    
    	s2, err := os.Lstat(filepath.Dir(strings.TrimSuffix(path, "/")))
    	if err != nil {
    		return false
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  5. test/fixedbugs/issue49378.go

    // license that can be found in the LICENSE file.
    
    package p
    
    func f(i int) {
    	var s1 struct {
    		s struct{ s struct{ i int } }
    	}
    	var s2, s3 struct {
    		a struct{ i int }
    		b int
    	}
    	func() {
    		i = 1 + 2*i + s3.a.i + func() int {
    			s2.a, s2.b = s3.a, s3.b
    			return 0
    		}() + func(*int) int {
    			return s1.s.s.i
    		}(new(int))
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 16:35:00 UTC 2021
    - 455 bytes
    - Viewed (0)
  6. test/fixedbugs/issue13337.go

    // Issue 13337: The Go compiler limited how deeply embedded types
    // were searched for promoted fields and methods.
    
    package s
    
    type S0 struct{ f int }
    func (S0) m() {}
    
    type S1 struct{ S0 }
    type S2 struct{ S1 }
    type S3 struct{ S2 }
    type S4 struct{ S3 }
    type S5 struct{ S4 }
    type S6 struct{ S5 }
    type S7 struct{ S6 }
    type S8 struct{ S7 }
    type S9 struct{ S8 }
    type S10 struct{ S9 }
    type S11 struct{ S10 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 653 bytes
    - Viewed (0)
  7. test/fixedbugs/bug427.go

    type T struct {a, b, c, d, e int}
    
    // array with four elements
    type A [4]int
    
    // array with five elements
    type B [5]int
    
    func main() {
    	var i interface{}
    
    	var s1, s2 S
    	i = s1 == s2
    
    	var t1, t2 T
    	i = t1 == t2
    
    	var a1, a2 A
    	i = a1 == a2
    
    	var b1, b2 B
    	i = b1 == b2
    
    	_ = i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 11 14:36:33 UTC 2015
    - 614 bytes
    - Viewed (0)
  8. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaReceiverValue.kt

        public val expression: KtExpression by validityAsserted(expression)
    
        /**
         * Whether safe navigation is used on this receiver. For example
         * ```
         * fun test(s1: String?, s2: String) {
         *   s1?.length // explicit receiver `s1` has `isSafeNavigation = true`
         *   s2.length // explicit receiver `s2` has `isSafeNavigation = false`
         * }
         * ```
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. test/codegen/memcombine.go

    	_ = b[2]
    	// arm64:`MOVH\sR[0-9]+,\s1\(R[0-9]+\)`,-`MOVB`
    	// 386:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    	// amd64:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    	// ppc64le:`MOVH\s`,-`MOVB`
    	// ppc64:`MOVHBR`,-`MOVB`
    	b[1], b[2] = byte(val), byte(val>>8)
    }
    
    func store_le_byte_2_inv(b []byte, val uint16) {
    	_ = b[2]
    	// 386:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    	// amd64:`MOVW\s[A-Z]+,\s1\([A-Z]+\)`,-`MOVB`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            "s1"                  | { property().tap { add("s1") } }               || "$collectionName(class ${String.name}, [s1])"
            "[s1, s2]"            | { property().value(["s1, s2"]) }               || "$collectionName(class ${String.name}, [s1, s2])"
            "s1 + s2"             | { property().tap { add("s1"); add("s2") } }    || "$collectionName(class ${String.name}, [s1] + [s2])"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
Back to top