summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2008-11-11 18:17:54 -0800
committerIan Lance Taylor <iant@golang.org>2008-11-11 18:17:54 -0800
commit5caabe8b6a373d5913d53c743f069c9a457896e7 (patch)
treebe8f8ddf8a02a6cbb69cd6dfeeed53f4f3ebf369
parent2ead51d5366e05f9a4a85167eb8deb8495022cbc (diff)
downloadgolang-5caabe8b6a373d5913d53c743f069c9a457896e7.tar.gz
The scope rules have been changed to say that labels live in a
separate per-function namespace. R=gri DELTA=24 (8 added, 16 deleted, 0 changed) OCL=19006 CL=19057
-rw-r--r--test/fixedbugs/bug077.go (renamed from test/bugs/bug077.go)7
-rw-r--r--test/golden.out3
2 files changed, 1 insertions, 9 deletions
diff --git a/test/bugs/bug077.go b/test/fixedbugs/bug077.go
index 97b9d2f45..ba6e3b77d 100644
--- a/test/bugs/bug077.go
+++ b/test/fixedbugs/bug077.go
@@ -8,10 +8,5 @@ package main
func main() {
var exit int;
-exit: // this shouldn't be legal
+exit:
}
-
-/*
-Within a scope, an identifier should have only one association - it cannot be
-a variable and a label at the same time.
-*/
diff --git a/test/golden.out b/test/golden.out
index 3b4fcecfe..70b5db270 100644
--- a/test/golden.out
+++ b/test/golden.out
@@ -97,9 +97,6 @@ bugs/bug064.go:15: illegal types for operand: CALL
struct { u int; v int }
BUG: compilation should succeed
-=========== bugs/bug077.go
-BUG: known to succeed incorrectly
-
=========== bugs/bug080.go
bugs/bug080.go:12: illegal types for operand: CALL
int