1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:34:40 -07:00

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
This commit is contained in:
Ian Lance Taylor 2011-03-29 06:48:20 -07:00
parent 0bc37a6d22
commit 469a747e02

View File

@ -6,6 +6,9 @@
package main
func x() {
}
func main() {
if { // ERROR "missing condition"
}