summaryrefslogtreecommitdiff
path: root/test/return.go
Commit message (Collapse)AuthorAgeFilesLines
* test: add cases to return.go that gccgo got wrongIan Lance Taylor2013-08-071-0/+20
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/12620043
* test: fix return.go to remove unused labelsIan Lance Taylor2013-08-071-4/+0
| | | | | | | | | | | 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
* test: fix return.go to not use fallthrough in a type switchIan Lance Taylor2013-08-071-84/+0
| | | | | | | | | | | | 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://codereview.appspot.com/12614043
* cmd/gc: fix line number for 'missing return' in closureRuss Cox2013-03-221-0/+1436
| | | | | | R=ken2 CC=golang-dev https://codereview.appspot.com/7838048
* cmd/gc: implement new return requirementsRuss Cox2013-03-041-0/+1453
Fixes issue 65. R=ken2 CC=golang-dev https://codereview.appspot.com/7441049