From: Ian Lance Taylor Date: Fri, 9 Aug 2013 15:43:19 +0000 (-0700) Subject: test: update bug086.go for current gccgo behaviour X-Git-Tag: go1.2rc2~693 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=58845656e8d0e64e2a7a29d6633682ce6b0df2d8;p=gostls13.git 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 --- diff --git a/test/fixedbugs/bug086.go b/test/fixedbugs/bug086.go index f03982b303..40d2362066 100644 --- a/test/fixedbugs/bug086.go +++ b/test/fixedbugs/bug086.go @@ -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");