diff options
author | Ian Lance Taylor <iant@golang.org> | 2013-08-07 11:19:07 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2013-08-07 11:19:07 -0700 |
commit | 141229e53f0a02ce4206190eaa50a6a4b62476a4 (patch) | |
tree | 8a21b33cbf4fce01aaf3fadc3c1928bc249b2a53 /test/return.go | |
parent | 6963f54ea5b07d5c7760d51c833256d21a9505f7 (diff) | |
download | go-141229e53f0a02ce4206190eaa50a6a4b62476a4.tar.gz |
test: fix return.go to remove unused labels
The gc compiler only gives an error about an unused label if
it has not given any errors in an earlier pass. Remove all
unused labels in this test because they don't test anything
useful and they cause gccgo to give unexpected errors.
R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12580044
Diffstat (limited to 'test/return.go')
-rw-r--r-- | test/return.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/return.go b/test/return.go index 6e02b782d..c1fe84382 100644 --- a/test/return.go +++ b/test/return.go @@ -272,7 +272,6 @@ func _() int { } // ERROR "missing return" func _() int { -L: print(1) if x == nil { panic(2) @@ -972,7 +971,6 @@ func _() int { } // ERROR "missing return" func _() int { -L: if x == nil { panic(2) } else if x == 1 { @@ -1666,7 +1664,6 @@ var _ = func() int { } // ERROR "missing return" var _ = func() int { -L: print(1) if x == nil { panic(2) @@ -2366,7 +2363,6 @@ var _ = func() int { } // ERROR "missing return" var _ = func() int { -L: if x == nil { panic(2) } else if x == 1 { |