]> Cypherpunks repositories - gostls13.git/commit
test: fix return.go to not use fallthrough in a type switch
authorIan Lance Taylor <iant@golang.org>
Wed, 7 Aug 2013 18:05:19 +0000 (11:05 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 7 Aug 2013 18:05:19 +0000 (11:05 -0700)
commit5e0278b7a06bbf904349570238fbbdd08c504693
tree4923216d8abac5d5dc01692af2eed02ab9ff10b4
parent5a54696d78003a1e5c17ea9d818dc00e85624c2c
test: fix return.go to not use fallthrough in a type switch

The gc compiler only gives an error about fallthrough in a
type switch if it has not given any errors in an earlier pass.
Remove all functions in this test that use fallthrough in a
type switch 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/12614043
test/return.go