Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 275 for rounds (0.1 sec)

  1. test/fixedbugs/issue13365.go

    	_ = [...]int{-1: 0} // ERROR "index must be non\-negative integer constant|index expression is negative|must not be negative"
    
    	_ = []int{100: 0}
    	_ = [10]int{100: 0} // ERROR "index 100 out of bounds|out of range"
    	_ = [...]int{100: 0}
    
    	_ = []int{t}    // ERROR "cannot use .* as (type )?int( in slice literal)?|incompatible type"
    	_ = [10]int{t}  // ERROR "cannot use .* as (type )?int( in array literal)?|incompatible type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 17:21:15 UTC 2022
    - 1K bytes
    - Viewed (0)
  2. test/index2.go

    // errorcheckoutput ./index.go
    
    // Copyright 2010 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.
    
    // Generate test of index and slice bounds checks.
    // The output is error checked.
    
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 305 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go

    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    					// We do not set TypeMeta here because it is not carried through a round trip
    					Raw:         []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go

    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    					// We do not set TypeMeta here because it is not carried through a round trip
    					Raw:         []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/asan2_fail.go

    	a := C.f()
    	q5 := (*C.int)(unsafe.Add(unsafe.Pointer(a), 4*5))
    	// Access to C pointer out of bounds.
    	*q5 = 100 // BOOM
    	// We shouldn't get here; asan should stop us first.
    	fmt.Printf("q5: %d, %x\n", *q5, q5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 616 bytes
    - Viewed (0)
  6. test/ken/array.go

    	var a [80]int
    
    	setpd(a[0:])
    	res(sumpd(a[0:]), 0, 80)
    }
    
    // generate bounds error with ptr dynamic
    func testpdfault() {
    	a := make([]int, 100)
    
    	print("good\n")
    	for i := 0; i < 100; i++ {
    		a[i] = 0
    	}
    	print("should fault\n")
    	a[100] = 0
    	print("bad\n")
    }
    
    // generate bounds error with ptr fixed
    func testfdfault() {
    	var a [80]int
    
    	print("good\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/chacha20/xor.go

    // places the result in little endian byte order in dst.
    func addXor(dst, src []byte, a, b uint32) {
    	_, _ = src[3], dst[3] // bounds check elimination hint
    	if unaligned {
    		// The compiler should optimize this code into
    		// 32-bit unaligned little endian loads and stores.
    		// TODO: delete once the compiler does a reliably
    		// good job with the generic code below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 04 22:52:07 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  8. test/fixedbugs/issue32187.go

    	}{
    		{"switch case", "", func() {
    			switch x {
    			case x.(*int):
    			}
    		}},
    		{"interface conversion", "", func() { _ = x == x.(error) }},
    		{"type assertion", "", func() { _ = x == x.(*int) }},
    		{"out of bounds", "", func() { _ = x == s[1] }},
    		{"nil pointer dereference #1", "", func() { _ = x == *p }},
    		// TODO(mdempsky): Restore "nil pointer dereference" check. The Go
    		// spec doesn't mandate an order for panics (or even panic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 19 23:02:39 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/dataflowActions/playSound/groovy/plugin/src/main/java/org/gradle/sample/sound/SoundFeedbackPlugin.java

    // end::flow-action[]
            settings.getGradle().getSharedServices().registerIfAbsent("soundService", SoundService.class, spec -> {});
    
    // tag::flow-action[]
            final File soundsDir = new File(settings.getSettingsDir(), "sounds");
            getFlowScope().always( // <2>
                SoundPlay.class,  // <3>
                spec ->  // <4>
                    spec.getParameters().getMediaFile().set(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. test/fixedbugs/issue4353.go

    // run
    
    // Copyright 2012 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.
    
    // Issue 4353. An optimizer bug in 8g triggers a runtime fault
    // instead of an out of bounds panic.
    
    package main
    
    var aib [100000]int
    var paib *[100000]int = &aib
    var i64 int64 = 100023
    
    func main() {
    	defer func() { recover() }()
    	_ = paib[i64]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 418 bytes
    - Viewed (0)
Back to top