]> Cypherpunks repositories - gostls13.git/commitdiff
test: invert incorrect condition.
authorAlan Donovan <adonovan@google.com>
Tue, 16 Jul 2013 16:18:00 +0000 (12:18 -0400)
committerAlan Donovan <adonovan@google.com>
Tue, 16 Jul 2013 16:18:00 +0000 (12:18 -0400)
R=gri
CC=golang-dev
https://golang.org/cl/11359043

test/cmp.go

index 7183f02079558d70b8ef56ca938b5a0ef8f4d4e8..73de502f39fcb54ccdbe6e90e536391ea5974343 100644 (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")
                }