Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 312 for negatives (0.29 sec)

  1. test/fixedbugs/issue16439.go

    package p
    
    var a []int = []int{1: 1}
    var b []int = []int{-1: 1} // ERROR "must be non-negative integer constant|index expression is negative|must not be negative"
    
    var c []int = []int{2.0: 2}
    var d []int = []int{-2.0: 2} // ERROR "must be non-negative integer constant|index expression is negative|must not be negative"
    
    var e []int = []int{3 + 0i: 3}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 779 bytes
    - Viewed (0)
  2. test/fixedbugs/issue4232.go

    // issue 7200
    
    package p
    
    func f() {
    	var a [10]int
    	_ = a[-1]  // ERROR "invalid array index -1|index out of bounds|must not be negative"
    	_ = a[-1:] // ERROR "invalid slice index -1|index out of bounds|must not be negative"
    	_ = a[:-1] // ERROR "invalid slice index -1|index out of bounds|must not be negative"
    	_ = a[10]  // ERROR "invalid array index 10|index .*out of bounds"
    	_ = a[9:10]
    	_ = a[10:10]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue8183.go

    	bard // ERROR "constant 256 overflows byte|integer constant overflow|cannot convert"
    )
    
    const (
    	c = len([1 - iota]int{})
    	d
    	e // ERROR "array bound must be non-negative|negative array bound|invalid array length"
    	f // ERROR "array bound must be non-negative|negative array bound|invalid array length"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 622 bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/rule_test.go

    		},
    		{ // Rule with negative values for ObjectSizeGreaterThan
    			inputXML: `<Rule>
    				<ID>negative-obj-size-greater-than</ID>
    				<Filter><ObjectSizeGreaterThan>-1</ObjectSizeGreaterThan></Filter>
    				<Expiration>
    					<Days>365</Days>
    				</Expiration>
                                <Status>Enabled</Status>
    	                    </Rule>`,
    			expectedErr: errXMLNotWellFormed,
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. test/makemap.go

    // license that can be found in the LICENSE file.
    
    // Ensure that typed non-integer, negative and too large
    // values are not accepted as size argument in make for
    // maps.
    
    package main
    
    type T map[int]int
    
    var sink T
    
    func main() {
    	sink = make(T, -1)            // ERROR "negative size argument in make.*|must not be negative"
    	sink = make(T, uint64(1<<63)) // ERROR "size argument too large in make.*|overflows int"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 23 00:41:01 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. src/runtime/stubs2.go

    // read calls the read system call.
    // It returns a non-negative number of bytes written or a negative errno value.
    func read(fd int32, p unsafe.Pointer, n int32) int32
    
    func closefd(fd int32) int32
    
    func exit(code int32)
    func usleep(usec uint32)
    
    //go:nosplit
    func usleep_no_g(usec uint32) {
    	usleep(usec)
    }
    
    // write1 calls the write system call.
    // It returns a non-negative number of bytes written or a negative errno value.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue4085a.go

    package main
    
    type T []int
    
    func main() {
    	_ = make(T, -1)    // ERROR "negative"
    	_ = make(T, 0.5)   // ERROR "constant 0.5 truncated to integer|non-integer len argument|truncated to int"
    	_ = make(T, 1.0)   // ok
    	_ = make(T, 1<<63) // ERROR "len argument too large|overflows int"
    	_ = make(T, 0, -1) // ERROR "negative cap|must not be negative"
    	_ = make(T, 10, 0) // ERROR "len larger than cap|length and capacity swapped"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 604 bytes
    - Viewed (0)
  8. test/fixedbugs/issue7150.go

    // issue 7150: array index out of bounds error off by one
    
    package main
    
    func main() {
    	_ = [0]int{-1: 50}              // ERROR "index must be non-negative integer constant|index expression is negative|must not be negative"
    	_ = [0]int{0: 0}                // ERROR "index 0 out of bounds \[0:0\]|out of range"
    	_ = [0]int{5: 25}               // ERROR "index 5 out of bounds \[0:0\]|out of range"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 22 17:50:13 UTC 2020
    - 754 bytes
    - Viewed (0)
  9. security/pkg/server/ca/monitoring.go

    		"The unix timestamp, in seconds, when Citadel root cert will expire. "+
    			"A negative time indicates the cert is expired.",
    	)
    	rootCertExpirySeconds = monitoring.NewDerivedGauge(
    		"citadel_server_root_cert_expiry_seconds",
    		"The time remaining, in seconds, before the root certificate will expire. "+
    			"A negative value indicates the cert is expired.",
    	)
    	certChainExpiryTimestamp = monitoring.NewGauge(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:09 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. test/makechan.go

    // license that can be found in the LICENSE file.
    
    // Ensure that typed non-integer, negative and too large
    // values are not accepted as size argument in make for
    // channels.
    
    package main
    
    type T chan byte
    
    var sink T
    
    func main() {
    	sink = make(T, -1)            // ERROR "negative buffer argument in make.*|must not be negative"
    	sink = make(T, uint64(1<<63)) // ERROR "buffer argument too large in make.*|overflows int"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 1K bytes
    - Viewed (0)
Back to top