Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
c217c16a
Commit
c217c16a
authored
Jul 29, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug136 unfixed
R=austin DELTA=35 (21 added, 14 deleted, 0 changed) OCL=32469 CL=32474
parent
43c7fc04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
bug136.go
test/bugs/bug136.go
+8
-1
golden.out
test/golden.out
+3
-3
No files found.
test/
fixed
bugs/bug136.go
→
test/bugs/bug136.go
View file @
c217c16a
...
@@ -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"
}
}
}
}
}
test/golden.out
View file @
c217c16a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment