summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug234.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug234.go')
-rw-r--r--test/fixedbugs/bug234.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/fixedbugs/bug234.go b/test/fixedbugs/bug234.go
index 882bc7401..b806ca64e 100644
--- a/test/fixedbugs/bug234.go
+++ b/test/fixedbugs/bug234.go
@@ -11,10 +11,12 @@ func main() {
c <- 100
x, ok := <-c
if x != 100 || !ok {
- panic("x=", x, " ok=", ok, " want 100, true")
+ println("x=", x, " ok=", ok, " want 100, true")
+ panic("fail")
}
x, ok = <-c
if x != 0 || ok {
- panic("x=", x, " ok=", ok, " want 0, false")
+ println("x=", x, " ok=", ok, " want 0, false")
+ panic("fail")
}
}