]> Cypherpunks repositories - gostls13.git/commitdiff
test: update bug086.go for current gccgo behaviour
authorIan Lance Taylor <iant@golang.org>
Fri, 9 Aug 2013 15:43:19 +0000 (08:43 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 9 Aug 2013 15:43:19 +0000 (08:43 -0700)
bug086.go:14:1: error: missing return at end of function

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12697043

test/fixedbugs/bug086.go

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