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" }