Commit 8fb6c3ac authored by Alan Donovan's avatar Alan Donovan

test: invert incorrect condition.

R=gri
CC=golang-dev
https://golang.org/cl/11359043
parent 1d55685e
......@@ -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")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment