Commit 0bc37a6d authored by Ian Lance Taylor's avatar Ian Lance Taylor

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
parent 47f4ae1a
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment