/
/
opt
/
golang
/
1.22.0
/
test
/
fixedbugs
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.52
PHP 8.3.16
Dir:
/opt/golang/1.22.0/test/fixedbugs
Edit:
/opt/golang/1.22.0/test/fixedbugs/issue18725.go
// run // Copyright 2017 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. package main import "os" func panicWhenNot(cond bool) { if cond { os.Exit(0) } else { panic("nilcheck elim failed") } } func main() { e := (*string)(nil) panicWhenNot(e == e) // Should never reach this line. panicWhenNot(*e == *e) }
Ukuran: 415 B