]> Cypherpunks repositories - gostls13.git/commitdiff
test: match gccgo error messages for syntax/chan.go.
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2011 13:47:39 +0000 (06:47 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2011 13:47:39 +0000 (06:47 -0700)
chan.go:11:1: error: unexpected ‘}’ in channel type
chan.go:13:16: error: unexpected ‘)’ in channel type
chan.go:16:16: error: unexpected comma in channel type

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4313055

test/syntax/chan.go

index 48beb1e70935fed842ff186c26c4c70e28186aab..ff3577502f222c7b20ed30c24900054a1f9747a5 100644 (file)
@@ -8,9 +8,9 @@ package main
 
 type xyz struct {
     ch chan
-} // ERROR "unexpected } in channel type"
+} // ERROR "unexpected .*}.* in channel type"
 
-func Foo(y chan) { // ERROR "unexpected \) in channel type"
+func Foo(y chan) { // ERROR "unexpected .*\).* in channel type"
 }
 
 func Bar(x chan, y int) { // ERROR "unexpected comma in channel type"