mirror of
https://github.com/golang/go
synced 2024-11-22 00:04:41 -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:
parent
47f4ae1a78
commit
0bc37a6d22
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user