aboutsummaryrefslogtreecommitdiff
path: root/test/syntax
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2011-03-29 06:48:20 -0700
committerIan Lance Taylor <iant@golang.org>2011-03-29 06:48:20 -0700
commit469a747e02dae8c9457233be3d294aa6b93b7903 (patch)
tree88ba6181e0de19e1774574285d34ed4a29cb37f9 /test/syntax
parent0bc37a6d22223fcae11af4af66ff19cd4ebdb60c (diff)
downloadgo-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.go3
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"
}