Commit 96c583b8 authored by Ian Lance Taylor's avatar Ian Lance Taylor

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://golang.org/cl/12580044
parent 5e0278b7
......@@ -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 {
......
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