aboutsummaryrefslogtreecommitdiff
path: root/test/cmp.go
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2013-07-16 12:18:00 -0400
committerAlan Donovan <adonovan@google.com>2013-07-16 12:18:00 -0400
commit8fb6c3ac25f077f5207215dc4868014a29e61759 (patch)
tree8c0c7efc6eea448ebcac6e2817e853b14a482f1e /test/cmp.go
parent1d55685e261a6c53403996aa31b1d147ee0090fb (diff)
downloadgo-8fb6c3ac25f077f5207215dc4868014a29e61759.tar.gz
go-8fb6c3ac25f077f5207215dc4868014a29e61759.zip
test: invert incorrect condition.
R=gri CC=golang-dev https://golang.org/cl/11359043
Diffstat (limited to 'test/cmp.go')
-rw-r--r--test/cmp.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cmp.go b/test/cmp.go
index 7183f02079..73de502f39 100644
--- a/test/cmp.go
+++ b/test/cmp.go
@@ -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")
}