From: Ian Lance Taylor Date: Tue, 29 Mar 2011 13:48:20 +0000 (-0700) Subject: test: avoid undefined error in syntax/if.go. X-Git-Tag: weekly.2011-04-04~67 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=469a747e02dae8c9457233be3d294aa6b93b7903;p=gostls13.git 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 --- 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" }