1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:54:40 -07:00

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
This commit is contained in:
Ian Lance Taylor 2011-03-29 06:47:39 -07:00
parent 47f4ae1a78
commit 0bc37a6d22

View File

@ -8,9 +8,9 @@ package main
type xyz struct { type xyz struct {
ch chan 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" func Bar(x chan, y int) { // ERROR "unexpected comma in channel type"