]> Cypherpunks repositories - gostls13.git/commitdiff
test: avoid undefined error in syntax/if.go.
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2011 13:48:20 +0000 (06:48 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 29 Mar 2011 13:48:20 +0000 (06:48 -0700)
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

index 913d4188540a750abd2b0558c89b23cbf730bb76..a3b51f0c07b1674937f245c70a2c94fc153da2f1 100644 (file)
@@ -6,6 +6,9 @@
 
 package main
 
+func x() {
+}
+
 func main() {
        if {  // ERROR "missing condition"
        }