]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: revert changes made for Go SSA interpreter test.
authorAlan Donovan <adonovan@google.com>
Tue, 8 Oct 2013 18:36:20 +0000 (14:36 -0400)
committerAlan Donovan <adonovan@google.com>
Tue, 8 Oct 2013 18:36:20 +0000 (14:36 -0400)
R=r, gri
CC=golang-dev
https://golang.org/cl/14552044

test/blank.go
test/nilptr2.go

index 46b61559d780e6da5275e40f4c85282f559b6123..0539debb1f25249788954bf0704db109ae1d635b 100644 (file)
@@ -111,8 +111,7 @@ func main() {
                panic(sum)
        }
 
-       // exp/ssa/interp doesn't yet skip blank fields in struct
-       // equivalence.  It also cannot support unsafe.Pointer.
+       // go.tools/ssa/interp cannot support unsafe.Pointer.
        if os.Getenv("GOSSAINTERP") == "" {
                type T1 struct{ x, y, z int }
                t1 := *(*T)(unsafe.Pointer(&T1{1, 2, 3}))
index 250a0ee6a907aaa0dfb807edf590cf6ea5af1ddb..57a5f8068f090ba1a8b59225ee7c93ff10624b97 100644 (file)
@@ -6,8 +6,6 @@
 
 package main
 
-import "os"
-
 func main() {
        ok := true
        for _, tt := range tests {
@@ -23,7 +21,6 @@ func main() {
        }
        if !ok {
                println("BUG")
-               os.Exit(1)
        }
 }