aboutsummaryrefslogtreecommitdiff
path: root/test/return.go
AgeCommit message (Collapse)Author
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2013-08-07test: add cases to return.go that gccgo got wrongIan Lance Taylor
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12620043
2013-08-07test: fix return.go to remove unused labelsIan Lance Taylor
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
2013-08-07test: fix return.go to not use fallthrough in a type switchIan Lance Taylor
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
2013-03-22cmd/gc: fix line number for 'missing return' in closureRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/7838048
2013-03-04cmd/gc: implement new return requirementsRuss Cox
Fixes #65. R=ken2 CC=golang-dev https://golang.org/cl/7441049