From: Ian Lance Taylor Date: Tue, 29 Mar 2011 13:47:39 +0000 (-0700) Subject: test: match gccgo error messages for syntax/chan.go. X-Git-Tag: weekly.2011-04-04~68 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0bc37a6d22223fcae11af4af66ff19cd4ebdb60c;p=gostls13.git test: match gccgo error messages for syntax/chan.go. 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 --- diff --git a/test/syntax/chan.go b/test/syntax/chan.go index 48beb1e709..ff3577502f 100644 --- a/test/syntax/chan.go +++ b/test/syntax/chan.go @@ -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"