mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00: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:
parent
47f4ae1a78
commit
0bc37a6d22
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue