mirror of
https://github.com/golang/go
synced 2024-10-05 20:21:21 -06:00
[dev.ssa] cmd/compile: make test panic on failure
Change-Id: Ia5483d23fe0b5dd0b6cfe2099e9b475184742716 Reviewed-on: https://go-review.googlesource.com/14074 Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
5fdd4fea90
commit
451eca2293
@ -101,6 +101,7 @@ func testFallthrough() {
|
|||||||
for i := 0; i < 6; i++ {
|
for i := 0; i < 6; i++ {
|
||||||
if got := fallthrough_ssa(i); got != i {
|
if got := fallthrough_ssa(i); got != i {
|
||||||
println("fallthrough_ssa(i) =", got, "wanted", i)
|
println("fallthrough_ssa(i) =", got, "wanted", i)
|
||||||
|
failed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -109,6 +110,7 @@ func testSwitch() {
|
|||||||
for i := 0; i < 6; i++ {
|
for i := 0; i < 6; i++ {
|
||||||
if got := switch_ssa(i); got != i {
|
if got := switch_ssa(i); got != i {
|
||||||
println("switch_ssa(i) =", got, "wanted", i)
|
println("switch_ssa(i) =", got, "wanted", i)
|
||||||
|
failed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user