]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.ssa] cmd/compile: make test panic on failure
authorTodd Neal <todd@tneal.org>
Mon, 31 Aug 2015 02:21:44 +0000 (21:21 -0500)
committerTodd Neal <todd@tneal.org>
Mon, 31 Aug 2015 02:29:50 +0000 (02:29 +0000)
Change-Id: Ia5483d23fe0b5dd0b6cfe2099e9b475184742716
Reviewed-on: https://go-review.googlesource.com/14074
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/testdata/ctl_ssa.go

index 49050110e53ae937647f93bcb7016d293e1ec690..cc55134b9664f53ab0393596ad84396f6eb1023a 100644 (file)
@@ -101,6 +101,7 @@ func testFallthrough() {
        for i := 0; i < 6; i++ {
                if got := fallthrough_ssa(i); got != i {
                        println("fallthrough_ssa(i) =", got, "wanted", i)
+                       failed = true
                }
        }
 }
@@ -109,6 +110,7 @@ func testSwitch() {
        for i := 0; i < 6; i++ {
                if got := switch_ssa(i); got != i {
                        println("switch_ssa(i) =", got, "wanted", i)
+                       failed = true
                }
        }
 }