]> Cypherpunks repositories - gostls13.git/commitdiff
test: Match gccgo error messages.
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 19:44:07 +0000 (12:44 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 19:44:07 +0000 (12:44 -0700)
vareq.go:10:25: error: expected ';' or '}' or newline

vareq1.go:9:24: error: expected ';' or newline after top level declaration

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

test/syntax/vareq.go
test/syntax/vareq1.go

index 9be03c1d3b99c248fc2f82e115b86deca7e7d44b..8525be8cf592aea395b17028babe949b95858ec4 100644 (file)
@@ -7,4 +7,4 @@
 package main
 
 func main() {
-       var x map[string]string{"a":"b"}                // ERROR "unexpected { at end of statement"
+       var x map[string]string{"a":"b"}                // ERROR "unexpected { at end of statement|expected ';' or '}' or newline"
index 2d35b3ea045135fc339166bcfaed7a960d7f0108..9d70bea39f51899f002713c6ecd9f271a7d4516e 100644 (file)
@@ -6,5 +6,5 @@
 
 package main
 
-var x map[string]string{"a":"b"}               // ERROR "unexpected { at end of statement"
+var x map[string]string{"a":"b"}               // ERROR "unexpected { at end of statement|expected ';' or newline after top level declaration"