| 1 |
// compile |
| 2 |
|
| 3 |
// Copyright 2023 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 p |
| 8 |
|
| 9 |
type T struct{ _, _ []int } |
| 10 |
|
| 11 |
func F[_ int]() { |
| 12 |
var f0, f1 float64 |
| 13 |
var b bool |
| 14 |
_ = func(T, float64) bool { |
| 15 |
b = deepEqual(0, 1) |
| 16 |
return func() bool { |
| 17 |
f1 = min(f0, 0) |
| 18 |
return b |
| 19 |
}() |
| 20 |
}(T{nil, nil}, min(0, f1)) |
| 21 |
f0 = min(0, 1) |
| 22 |
} |
| 23 |
|
| 24 |
//go:noinline |
| 25 |
func deepEqual(x, y any) bool { |
| 26 |
return x == y |
| 27 |
} |
| 28 |
|
| 29 |
func init() { |
| 30 |
F[int]() |
| 31 |
} |