- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,056 for mypanic (0.11 sec)
-
test/typeparam/issue48317.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 648 bytes - Viewed (0) -
test/fixedbugs/bug119.go
return a[0] // this seems to do the wrong thing } func main() { a := &[]int{12} if x := (*a)[0]; x != 12 { panic(2) } if x := foo(*a); x != 12 { // fails (x is incorrect) panic(3) } } /* uetli:~/Source/go1/test/bugs gri$ 6go bug119 3 70160 panic on line 83 PC=0x14d6 0x14d6?zi mainĀ·main(23659, 0, 1, ...) mainĀ·main(0x5c6b, 0x1, 0x7fff5fbff830, ...) 0x52bb?zi
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 697 bytes - Viewed (0) -
src/cmd/cgo/internal/testlife/life_test.go
GOPATH, err := os.MkdirTemp("", "cgolife") if err != nil { log.Panic(err) } defer os.RemoveAll(GOPATH) os.Setenv("GOPATH", GOPATH) // Copy testdata into GOPATH/src/cgolife, along with a go.mod file // declaring the same path. modRoot := filepath.Join(GOPATH, "src", "cgolife") if err := cgotest.OverlayDir(modRoot, "testdata"); err != nil { log.Panic(err) } if err := os.Chdir(modRoot); err != nil { log.Panic(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 20:56:09 UTC 2023 - 1.5K bytes - Viewed (0) -
test/fixedbugs/issue23837.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 30 17:45:19 UTC 2018 - 1.1K bytes - Viewed (0) -
test/fixedbugs/bug012.go
var u31 uint64 = 1; _, _ = u30, u31; var u32 uint64 = 18446744073709551615; var u33 uint64 = +18446744073709551615; if u32 != (1<<64)-1 { panic("u32\n"); } if u33 != (1<<64)-1 { panic("u33\n"); } var i34 int64 = ^0; // note: 2's complement means ^0 == -1 if i34 != -1 { panic("i34") } } /* bug12.go:5: overflow converting constant to <uint64>UINT64 bug12.go:6: overflow converting constant to <uint64>UINT64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:48:57 UTC 2012 - 756 bytes - Viewed (0) -
test/fixedbugs/issue9537.dir/b.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 22 03:25:12 UTC 2015 - 678 bytes - Viewed (0) -
test/typeparam/issue47258.go
x++ return x } func main() { if got, want := inc(int32(5)), int32(6); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got, want := inc(float64(5)), float64(6.0); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) } if got, want := inc(complex64(5)), complex64(6.0); got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 686 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue18584/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 424 bytes - Viewed (0) -
src/cmd/go/testdata/script/vendor_issue12156.txt
# Tests issue #12156, a former index out of range panic. env GO111MODULE=off env GOPATH=$WORK/gopath/src/testvendor2 # vendor/x is directly in $GOPATH, not in $GOPATH/src cd $WORK/gopath/src/testvendor2/src/p ! go build p.go ! stderr panic # Make sure it doesn't panic stderr 'cannot find package "x"' -- testvendor2/src/p/p.go -- package p import "x" -- testvendor2/vendor/x/x.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 398 bytes - Viewed (0) -
test/typeswitch1.go
case nil: return fmt.Sprint("nil ", xx) } panic("not reached") } func check(x interface{}, s string) { w := whatis(x) if w != s { fmt.Println("whatis", x, "=>", w, "!=", s) panic("fail") } w = whatis1(x) if w != s { fmt.Println("whatis1", x, "=>", w, "!=", s) panic("fail") } } func main() { check(1, "signed 1") check(uint(1), "unsigned 1")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 00:48:19 UTC 2012 - 1.6K bytes - Viewed (0)