0
1
mirror of https://github.com/golang/go synced 2025-05-05 03:21:36 +00:00

cmd/gc: implement new return requirements

Fixes .

R=ken2
CC=golang-dev
https://golang.org/cl/7441049
This commit is contained in:
Russ Cox
2013-03-04 17:02:04 -05:00
parent 9905cec0dc
commit ecab408c42
9 changed files with 1862 additions and 291 deletions

@ -6,12 +6,12 @@
package main
func f() int { // ERROR "return|control"
func f() int { // GCCGO_ERROR "control"
if false {
return 0;
}
// we should not be able to return successfully w/o a return statement
}
} // GC_ERROR "return"
func main() {
print(f(), "\n");