Source file test/fixedbugs/issue42876.go
1 // run 2 3 // Copyright 2020 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 7 package main 8 9 var x = [4]int32{-0x7fffffff, 0x7fffffff, 2, 4} 10 11 func main() { 12 if x[0] > x[1] { 13 panic("fail 1") 14 } 15 if x[2]&x[3] < 0 { 16 panic("fail 2") // Fails here 17 } 18 } 19