3 // Copyright 2022 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.
7 // Issue 52788: miscompilation for boolean ops on ARM64.
17 func f(next func() bool) {
18 for b := next(); b; b = next() {
25 next := reflect.MakeFunc(reflect.TypeOf((func() bool)(nil)), func(_ []reflect.Value) []reflect.Value {
26 return []reflect.Value{reflect.ValueOf(true)}
28 reflect.ValueOf(f).Call([]reflect.Value{next})