aboutsummaryrefslogtreecommitdiff
path: root/test/syntax
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2011-03-29 06:47:39 -0700
committerIan Lance Taylor <iant@golang.org>2011-03-29 06:47:39 -0700
commit0bc37a6d22223fcae11af4af66ff19cd4ebdb60c (patch)
tree2461b6b177ea5d412034c3aefc37282dc7e380f1 /test/syntax
parent47f4ae1a78cb09999f57b34a38913047d5d99a53 (diff)
downloadgo-0bc37a6d22223fcae11af4af66ff19cd4ebdb60c.tar.gz
go-0bc37a6d22223fcae11af4af66ff19cd4ebdb60c.zip
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
Diffstat (limited to 'test/syntax')
-rw-r--r--test/syntax/chan.go4
1 files changed, 2 insertions, 2 deletions
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"