diff options
author | Ian Lance Taylor <iant@golang.org> | 2011-03-29 06:48:20 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2011-03-29 06:48:20 -0700 |
commit | 469a747e02dae8c9457233be3d294aa6b93b7903 (patch) | |
tree | 88ba6181e0de19e1774574285d34ed4a29cb37f9 /test/syntax | |
parent | 0bc37a6d22223fcae11af4af66ff19cd4ebdb60c (diff) | |
download | go-469a747e02dae8c9457233be3d294aa6b93b7903.tar.gz go-469a747e02dae8c9457233be3d294aa6b93b7903.zip |
test: avoid undefined error in syntax/if.go.
Without this the gccgo version of errchk reports an unmatched
error.
R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4327041
Diffstat (limited to 'test/syntax')
-rw-r--r-- | test/syntax/if.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/syntax/if.go b/test/syntax/if.go index 913d418854..a3b51f0c07 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" } |