From 58845656e8d0e64e2a7a29d6633682ce6b0df2d8 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 9 Aug 2013 08:43:19 -0700 Subject: [PATCH] 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 --- test/fixedbugs/bug086.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixedbugs/bug086.go b/test/fixedbugs/bug086.go index f03982b303a..40d23620669 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");