]> Cypherpunks repositories - gostls13.git/commitdiff
fix build
authorRuss Cox <rsc@golang.org>
Thu, 30 Jul 2009 01:18:12 +0000 (18:18 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 30 Jul 2009 01:18:12 +0000 (18:18 -0700)
TBR=austin
OCL=32496
CL=32496

test/bugs/bug136.go

index 7491b65d88fc3e6c199ae729e95f660887e6c47d..5846c654b9002a711fc306132b82e7ab0357db7f 100644 (file)
@@ -10,13 +10,6 @@ func main() {
        L: ;  // ';' terminates empty statement => L does not apply to for loop
        for i := 0; i < 10; i++ {
                println(i);
-               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"
-               }
+               break L  // L does not apply to for loop
        }
 }