- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for makeU16 (0.13 sec)
-
src/cmd/compile/internal/test/shift_test.go
t.Errorf("got %d %d 0x%x, expected -32 -128 0x60", v, w, z) } if v, w, z := variableShiftOverflow64x16(-64, makeU16(0xffff), 2); v != -32 || w != -128 || z != 0x7fffffffffffffe0 { t.Errorf("got %d %d 0x%x, expected -32 -128 0x7fffffffffffffe0", v, w, z) } if v, w, z := variableShiftOverflow32x16(-64, makeU16(0xffff), 2); v != -32 || w != -128 || z != 0x7fffffe0 { t.Errorf("got %d %d 0x%x, expected -32 -128 0x7fffffe0,", v, w, z)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 22:26:39 UTC 2023 - 25.6K bytes - Viewed (0) -
test/prove.go
for i := len(foobar) - 1; i >= 0; i-- { // ERROR "Induction variable: limits \[0,\?\], increment 1" f := foobar[i] foobar = foobar[:i] // ERROR "IsSliceInBounds" f() } } func make1(n int) []int { s := make([]int, n) for i := 0; i < n; i++ { // ERROR "Induction variable: limits \[0,\?\), increment 1" s[i] = 1 // ERROR "Proved IsInBounds$" } return s } func make2(n int) []int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 00:02:36 UTC 2024 - 21.2K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
) var ch chan [10]int const ( _ = len /* ERROR "not constant" */ (<-ch) _ = len /* ERROR "not constant" */ ([4]int{(<-ch)[0]}) ) } func make1() { var n int var m float32 var s uint _ = make() // ERROR "not enough arguments" _ = make(1 /* ERROR "not a type" */) _ = make(int /* ERROR "cannot make" */) // slices
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0)