diff options
author | Russ Cox <rsc@golang.org> | 2009-07-29 15:39:05 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-07-29 15:39:05 -0700 |
commit | e0f2e604f5caaca7ab06455e561436f297e3adfb (patch) | |
tree | 4b04eb01e509d6aa720658307d61e3471d60e11b | |
parent | 35fe6738cc972d9f95aa5640ef4a6cf9ef71493c (diff) | |
download | go-e0f2e604f5caaca7ab06455e561436f297e3adfb.tar.gz |
bug136 unfixed
R=austin
DELTA=35 (21 added, 14 deleted, 0 changed)
OCL=32469
CL=32474
-rw-r--r-- | test/bugs/bug136.go (renamed from test/fixedbugs/bug136.go) | 9 | ||||
-rw-r--r-- | test/golden.out | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/test/fixedbugs/bug136.go b/test/bugs/bug136.go index 5846c654b..7491b65d8 100644 --- a/test/fixedbugs/bug136.go +++ b/test/bugs/bug136.go @@ -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" + } } } diff --git a/test/golden.out b/test/golden.out index 29b4bcab7..8cadc26b9 100644 --- a/test/golden.out +++ b/test/golden.out @@ -220,9 +220,6 @@ fixedbugs/bug133.dir/bug2.go:11: undefined: bug0.T field i fixedbugs/bug133.dir/bug2.go:11: illegal types for operand: RETURN int -=========== fixedbugs/bug136.go -fixedbugs/bug136.go:9: invalid break label L - =========== fixedbugs/bug148.go 2 3 interface is main.T, not main.T·bug148·1 @@ -235,6 +232,9 @@ panic PC=xxx =========== bugs/bug132.go BUG: compilation succeeds incorrectly +=========== bugs/bug136.go +BUG: errchk: bugs/bug136.go:15: missing expected error: 'L1' + =========== bugs/bug159.go abc: expected 4 5 6 got 4 4 -4 BUG: bug159 |