From 469a747e02dae8c9457233be3d294aa6b93b7903 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 29 Mar 2011 06:48:20 -0700 Subject: [PATCH] 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 --- test/syntax/if.go | 3 +++ 1 file changed, 3 insertions(+) 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" }