test: revert changes made for Go SSA interpreter test.

R=r, gri
CC=golang-dev
https://golang.org/cl/14552044
This commit is contained in:
Alan Donovan 2013-10-08 14:36:20 -04:00
parent 254dc5fdbe
commit bab2a5416c
2 changed files with 1 additions and 5 deletions

View file

@ -111,8 +111,7 @@ func main() {
panic(sum) panic(sum)
} }
// exp/ssa/interp doesn't yet skip blank fields in struct // go.tools/ssa/interp cannot support unsafe.Pointer.
// equivalence. It also cannot support unsafe.Pointer.
if os.Getenv("GOSSAINTERP") == "" { if os.Getenv("GOSSAINTERP") == "" {
type T1 struct{ x, y, z int } type T1 struct{ x, y, z int }
t1 := *(*T)(unsafe.Pointer(&T1{1, 2, 3})) t1 := *(*T)(unsafe.Pointer(&T1{1, 2, 3}))

View file

@ -6,8 +6,6 @@
package main package main
import "os"
func main() { func main() {
ok := true ok := true
for _, tt := range tests { for _, tt := range tests {
@ -23,7 +21,6 @@ func main() {
} }
if !ok { if !ok {
println("BUG") println("BUG")
os.Exit(1)
} }
} }