// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// comparisons

package expr2

func _bool() {
	const t = true == true
	const f = true == false
	_ = t /* ERROR "cannot compare" */ < f
	_ = 0 /* ERROR "cannot convert" */ == t
	var b bool
	var x, y float32
	b = x < y
	_ = struct{b bool}{x < y}
}

// corner cases
var (
	v0 = nil /* ERROR "cannot compare" */ == nil
)