mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00: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:
parent
0bc37a6d22
commit
469a747e02
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
func x() {
|
||||||
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
if { // ERROR "missing condition"
|
if { // ERROR "missing condition"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue