]> Cypherpunks repositories - gostls13.git/commitdiff
test: Match gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Wed, 8 Sep 2010 20:57:12 +0000 (13:57 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 8 Sep 2010 20:57:12 +0000 (13:57 -0700)
bug298.go:10:2: error: expected declaration
bug298.go:10:25: error: expected ‘;’ or newline after top level declaration
bug298.go:10:25: error: expected declaration

R=rsc
CC=golang-dev
https://golang.org/cl/2156046

test/fixedbugs/bug298.go

index 9b329aedfce26ae73b4ab981d4ae151bb937bae9..fe4a99a780ec9908b7f4d2c5237ccbf640a17588 100644 (file)
@@ -7,5 +7,5 @@
 package ddd
 
 func Sum() int
-       for i := range []int{} { return i }  // ERROR "return outside function"
+       for i := range []int{} { return i }  // ERROR "return outside function|expected"