mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
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:
parent
254dc5fdbe
commit
bab2a5416c
@ -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}))
|
||||||
|
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user