test/fixedbugs/issue49122.go
raw| 1 | // compile |
| 2 | |
| 3 | // Copyright 2021 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 B []bool |
| 10 | var N int |
| 11 | |
| 12 | func f(p bool, m map[bool]bool) bool { |
| 13 | var q bool |
| 14 | _ = p || N&N < N || B[0] || B[0] |
| 15 | return p && q && m[q] |
| 16 | } |