Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 494 for elided (0.12 sec)

  1. test/bounds.go

    	use(a1k[i&999])   // ERROR "index bounds check elided"
    	use(a100k[i&999]) // ERROR "index bounds check elided"
    	use(p1[i&999])
    	use(p1k[i&999])   // ERROR "index bounds check elided"
    	use(p100k[i&999]) // ERROR "index bounds check elided"
    
    	use(s[ui&999])
    	use(a1[ui&999])
    	use(a1k[ui&999])   // ERROR "index bounds check elided"
    	use(a100k[ui&999]) // ERROR "index bounds check elided"
    	use(p1[ui&999])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 27 03:11:45 UTC 2020
    - 6.1K bytes
    - Viewed (0)
  2. src/runtime/traceback_test.go

    			for i < n {
    				if len(tb.frames) == 0 {
    					t.Errorf("traceback ended early")
    					break
    				}
    				fr := tb.frames[0]
    				if i == runtime.TracebackInnerFrames && elided > 0 {
    					// This should be an "elided" frame.
    					if fr.elided != elided {
    						t.Errorf("want %d frames elided", elided)
    						break
    					}
    					i += fr.elided
    				} else {
    					want := fmt.Sprintf("runtime_test.tte%d", (i+1)%5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  3. test/typeparam/issue48424.go

    // run
    
    // Copyright 2021 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.
    
    // Smoke test for constraint literals with elided interface
    // per issue #48424.
    
    package main
    
    func identity[T int](x T) T {
    	return x
    }
    
    func min[T int | string](x, y T) T {
    	if x < y {
    		return x
    	}
    	return y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:48:58 UTC 2022
    - 916 bytes
    - Viewed (0)
  4. test/fixedbugs/issue26153.go

    // removed by the dead auto elimination pass.
    
    package main
    
    const hello = "hello world"
    
    func main() {
    	var s string
    	mangle(&s)
    	if s != hello {
    		panic("write incorrectly elided")
    	}
    }
    
    //go:noinline
    func mangle(ps *string) {
    	if ps == nil {
    		var s string
    		ps = &s
    	}
    	*ps = hello
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 02 19:43:07 UTC 2018
    - 504 bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/expr3.go

    	var value int
    	_ = M1{true: 1, false: 0}
    	_ = M2{nil: 0, &value: 1}
    
    	// composite literal element types may be elided
    	type T [2]int
    	_ = map[int]T{0: T{3, 4}, 1: {5, 6}}
    
    	// recursively so
    	_ = map[int][]T{0: {}, 1: {{}, T{1, 2}}}
    
    	// composite literal key types may be elided
    	_ = map[T]int{T{3, 4}: 0, {5, 6}: 1}
    
    	// recursively so
    	_ = map[[2]T]int{{}: 0, {{}}: 1, [2]T{{}}: 2, {T{1, 2}}: 3}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 22:41:49 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  6. pkg/workloadapi/workload.proto

      // Name represents the name for the workload.
      // For Kubernetes, this is the pod name.
      // This is just for debugging and may be elided as an optimization.
      string name = 1;
      // Namespace represents the namespace for the workload.
      // This is just for debugging and may be elided as an optimization.
      string namespace = 2;
    
      // Address represents the IPv4/IPv6 address for the workload.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:35 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. src/internal/types/testdata/examples/typesets.go

    // Copyright 2021 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.
    
    // This file shows some examples of constraint literals with elided interfaces.
    // These examples are permitted if proposal issue #48424 is accepted.
    
    package p
    
    // Constraint type sets of the form T, ~T, or A|B may omit the interface.
    type (
    	_[T int]            struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/sys/cpu/parse.go

    // license that can be found in the LICENSE file.
    
    package cpu
    
    import "strconv"
    
    // parseRelease parses a dot-separated version number. It follows the semver
    // syntax, but allows the minor and patch versions to be elided.
    //
    // This is a copy of the Go runtime's parseRelease from
    // https://golang.org/cl/209597.
    func parseRelease(rel string) (major, minor, patch int, ok bool) {
    	// Strip anything after a dash or plus.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 17:48:21 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. pkg/test/profile/fgprof.go

    	"github.com/felixge/fgprof"
    
    	"istio.io/istio/pkg/test"
    )
    
    var fprof string
    
    // init initializes additional profiling flags
    // Go comes with some, like -cpuprofile and -memprofile by default, so those are elided.
    func init() {
    	flag.StringVar(&fprof, "fullprofile", "", "enable full profile. Path will be relative to test directory")
    }
    
    // FullProfile runs a "Full" profile (https://github.com/felixge/fgprof). This differs from standard
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 21 21:50:09 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  10. src/net/netip/fuzz_test.go

    	"fd7a:115c:a1e0:ab12:4843:cd96:626b:430b",
    	// IPv6 with elided fields in the middle.
    	"fd7a:115c::626b:430b",
    	// IPv6 with elided fields at the end.
    	"fd7a:115c:a1e0:ab12:4843:cd96::",
    	// IPv6 with single elided field at the end.
    	"fd7a:115c:a1e0:ab12:4843:cd96:626b::",
    	"fd7a:115c:a1e0:ab12:4843:cd96:626b:0",
    	// IPv6 with single elided field in the middle.
    	"fd7a:115c:a1e0::4843:cd96:626b:430b",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 20 23:46:23 UTC 2021
    - 10.5K bytes
    - Viewed (0)
Back to top