]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for bug349.go
authorIan Lance Taylor <iant@golang.org>
Tue, 20 Sep 2011 21:47:48 +0000 (14:47 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 20 Sep 2011 21:47:48 +0000 (14:47 -0700)
bug349.go:12:14: error: expected ‘;’ or ‘}’ or newline
bug349.go:12:2: error: not enough arguments to return

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5081047

test/fixedbugs/bug349.go

index 07005973e778e7ab76d0980b58eba45d7ca09a6d..e7612edb77e4f02b81d63ced2e48aebba91f4a6b 100644 (file)
@@ -9,5 +9,5 @@
 package main
 
 func foo() (a, b, c int) {
-       return 0, 1 2.01  // ERROR "unexpected literal 2.01"
+       return 0, 1 2.01  // ERROR "unexpected literal 2.01|expected ';' or '}' or newline|not enough arguments to return"
 }