1
0
mirror of https://github.com/golang/go synced 2024-11-22 19:14:53 -07:00

test: update bug086.go for current gccgo behaviour

bug086.go:14:1: error: missing return at end of function

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12697043
This commit is contained in:
Ian Lance Taylor 2013-08-09 08:43:19 -07:00
parent ef86beb445
commit 58845656e8

View File

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