1
0
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:
Alan Donovan 2013-07-16 12:18:00 -04:00
parent 1d55685e26
commit 8fb6c3ac25

View File

@ -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")
}