- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for panicSliceB (0.12 sec)
-
test/codegen/race.go
// arm64:-"CALL.*racefuncenter.*" // ppc64le:-"CALL.*racefuncenter.*" func RaceMightPanic(a []int, i, j, k, s int) { var b [4]int _ = b[i] // panicIndex _ = a[i:j] // panicSlice _ = a[i:j:k] // also panicSlice _ = i << s // panicShift _ = i / j // panicDivide
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 02 03:03:16 UTC 2020 - 651 bytes - Viewed (0) -
test/codegen/stack.go
// they might panic in various ways. See issue 31219. // amd64:"TEXT\t.*NOSPLIT.*" func MightPanic(a []int, i, j, k, s int) { _ = a[i] // panicIndex _ = a[i:j] // panicSlice _ = a[i:j:k] // also panicSlice _ = i << s // panicShift _ = i / j // panicDivide } // Put a defer in a loop, so second defer is not open-coded func Defer() { for i := 0; i < 2; i++ { defer func() {}()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 21:29:41 UTC 2024 - 3.4K bytes - Viewed (0)