1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:04:41 -07:00

test: Match gccgo error messages.

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
This commit is contained in:
Ian Lance Taylor 2010-09-08 13:57:12 -07:00
parent ae2dc76335
commit 2660161533

View 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"