1 // $G $D/$F.go && $L $F.$A && (./$A.out || echo BUG: bug114 failed)
3 // Copyright 2009 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.
10 const C32 = (-1) & ((1 << 32) - 1)
14 if B32 != 0xFFFFFFFF {
15 println("1<<32 - 1 is", B32, "should be", 0xFFFFFFFF)
18 if C32 != 0xFFFFFFFF {
19 println("(-1) & ((1<<32) - 1) is", C32, "should be", 0xFFFFFFFF)
23 println("^0 is", D32, "should be", -1)