Commit c217c16a authored by Russ Cox's avatar Russ Cox

bug136 unfixed

R=austin
DELTA=35  (21 added, 14 deleted, 0 changed)
OCL=32469
CL=32474
parent 43c7fc04
...@@ -10,6 +10,13 @@ func main() { ...@@ -10,6 +10,13 @@ func main() {
L: ; // ';' terminates empty statement => L does not apply to for loop L: ; // ';' terminates empty statement => L does not apply to for loop
for i := 0; i < 10; i++ { for i := 0; i < 10; i++ {
println(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"
}
} }
} }
...@@ -220,9 +220,6 @@ fixedbugs/bug133.dir/bug2.go:11: undefined: bug0.T field i ...@@ -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 fixedbugs/bug133.dir/bug2.go:11: illegal types for operand: RETURN
int int
=========== fixedbugs/bug136.go
fixedbugs/bug136.go:9: invalid break label L
=========== fixedbugs/bug148.go =========== fixedbugs/bug148.go
2 3 2 3
interface is main.T, not main.T·bug148·1 interface is main.T, not main.T·bug148·1
...@@ -235,6 +232,9 @@ panic PC=xxx ...@@ -235,6 +232,9 @@ panic PC=xxx
=========== bugs/bug132.go =========== bugs/bug132.go
BUG: compilation succeeds incorrectly BUG: compilation succeeds incorrectly
=========== bugs/bug136.go
BUG: errchk: bugs/bug136.go:15: missing expected error: 'L1'
=========== bugs/bug159.go =========== bugs/bug159.go
abc: expected 4 5 6 got 4 4 -4 abc: expected 4 5 6 got 4 4 -4
BUG: bug159 BUG: bug159
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment