diff options
author | Ian Lance Taylor <iant@golang.org> | 2009-03-16 21:47:38 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2009-03-16 21:47:38 -0700 |
commit | aec388eb0568f204d290257279a988822b7b5d16 (patch) | |
tree | 9883e4b77e40761cceebaf2ffe55c685409a2e0d | |
parent | 29172ee8f4e63b04314cec503b562b5b48e07f9b (diff) | |
download | golang-aec388eb0568f204d290257279a988822b7b5d16.tar.gz |
Don't try to define the same label twice, as that produces a
label redefinition error.
R=gri
DELTA=6 (0 added, 0 deleted, 6 changed)
OCL=26357
CL=26372
-rw-r--r-- | test/bugs/bug140.go | 8 | ||||
-rw-r--r-- | test/golden.out | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/bugs/bug140.go b/test/bugs/bug140.go index 614fabdc3..33d1deb8a 100644 --- a/test/bugs/bug140.go +++ b/test/bugs/bug140.go @@ -7,12 +7,12 @@ package main func main() { - if {} else L: ; - if {} else L: main() ; + if {} else L1: ; + if {} else L2: main() ; } /* These should be legal according to the spec. -bug140.go:6: syntax error near L -bug140.go:7: syntax error near L +bug140.go:6: syntax error near L1 +bug140.go:7: syntax error near L2 */ diff --git a/test/golden.out b/test/golden.out index 8e4786c3c..c41d2d9e1 100644 --- a/test/golden.out +++ b/test/golden.out @@ -137,8 +137,8 @@ bugs/bug139.go:7: fatal error: naddr: ONAME class x 5 BUG should compile =========== bugs/bug140.go -bugs/bug140.go:6: syntax error near L -bugs/bug140.go:7: syntax error near L +bugs/bug140.go:6: syntax error near L1 +bugs/bug140.go:7: syntax error near L2 BUG should compile =========== fixedbugs/bug016.go |