test/fixedbugs/issue22198.go
raw| 1 | // compile |
| 2 | |
| 3 | // Copyright 2017 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 issue22198 |
| 8 | |
| 9 | func f(a *bool, b bool) { |
| 10 | if b { |
| 11 | return |
| 12 | } |
| 13 | c := '\n' |
| 14 | if b { |
| 15 | c = ' ' |
| 16 | } |
| 17 | *a = c == '\n' |
| 18 | } |