2012-02-16 23:51:04 -05:00
|
|
|
// errorcheck
|
2011-02-22 18:23:29 -05:00
|
|
|
|
2016-04-10 14:32:26 -07:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-02-22 18:23:29 -05:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2011-03-29 06:48:20 -07:00
|
|
|
func x() {
|
|
|
|
}
|
|
|
|
|
2011-02-22 18:23:29 -05:00
|
|
|
func main() {
|
|
|
|
if { // ERROR "missing condition"
|
|
|
|
}
|
|
|
|
|
|
|
|
if x(); { // ERROR "missing condition"
|
|
|
|
}
|
|
|
|
}
|