]> Cypherpunks repositories - gostls13.git/commitdiff
fixed golden.out, which is what 32496 should have done.
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2009 01:33:31 +0000 (18:33 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2009 01:33:31 +0000 (18:33 -0700)
roll back 32496

TBR=austin
OCL=32499
CL=32501

test/bugs/bug136.go
test/golden.out

index 5846c654b9002a711fc306132b82e7ab0357db7f..7491b65d88fc3e6c199ae729e95f660887e6c47d 100644 (file)
@@ -10,6 +10,13 @@ func main() {
        L: ;  // ';' terminates empty statement => L does not apply to for loop
        for i := 0; i < 10; i++ {
                println(i);
-               break L  // L does not apply to for loop
+               break L;  // ERROR "L"
+       }
+
+       L1: { // L1 labels block => L1 does not apply to for loop
+               for i := 0; i < 10; i++ {
+                       println(i);
+                       break L1;  // ERROR "L1"
+               }
        }
 }
index 8cadc26b90a22b2297882f5558b84116038bc299..a528fa8186d24ccd4d6d0d3618162ce078009e06 100644 (file)
@@ -233,7 +233,7 @@ panic PC=xxx
 BUG: compilation succeeds incorrectly
 
 =========== bugs/bug136.go
-BUG: errchk: bugs/bug136.go:15: missing expected error: 'L1'
+BUG: errchk: command succeeded unexpectedly
 
 =========== bugs/bug159.go
 abc: expected 4 5 6 got 4 4 -4