diff options
Diffstat (limited to 'test/syntax')
| -rw-r--r-- | test/syntax/chan.go | 4 | ||||
| -rw-r--r-- | test/syntax/if.go | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/test/syntax/chan.go b/test/syntax/chan.go index 48beb1e70..ff3577502 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" diff --git a/test/syntax/if.go b/test/syntax/if.go index 913d41885..a3b51f0c0 100644 --- a/test/syntax/if.go +++ b/test/syntax/if.go @@ -6,6 +6,9 @@ package main +func x() { +} + func main() { if { // ERROR "missing condition" } |
