blob: b2a65f9a59374566a4d64ca286f5187c502f3227 [file] [log] [blame]
Russ Cox57eb06f2012-02-16 23:51:04 -05001// errorcheck
Russ Cox52943bf2011-02-22 18:23:29 -05002
3// Copyright 2011 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
Ian Lance Taylor469a7472011-03-29 06:48:20 -07009func x() {
10}
11
Russ Cox52943bf2011-02-22 18:23:29 -050012func main() {
13 if { // ERROR "missing condition"
14 }
15
16 if x(); { // ERROR "missing condition"
17 }
18}