From 0bc37a6d22223fcae11af4af66ff19cd4ebdb60c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 29 Mar 2011 06:47:39 -0700 Subject: [PATCH] test: match gccgo error messages for syntax/chan.go. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 4 ++-- 1 file 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" -- 2.50.0