mirror of
https://github.com/golang/go
synced 2024-11-25 06:57:58 -07:00
test: invert incorrect condition.
R=gri CC=golang-dev https://golang.org/cl/11359043
This commit is contained in:
parent
1d55685e26
commit
8fb6c3ac25
@ -43,8 +43,8 @@ func main() {
|
||||
var d string = "hel" // try to get different pointer
|
||||
d = d + "lo"
|
||||
|
||||
// exp/ssa/interp can't handle unsafe.Pointer.
|
||||
if os.Getenv("GOSSAINTERP") != "" {
|
||||
// go.tools/ssa/interp can't handle unsafe.Pointer.
|
||||
if os.Getenv("GOSSAINTERP") == "" {
|
||||
if stringptr(c) == stringptr(d) {
|
||||
panic("compiler too smart -- got same string")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user