| 1 |
// { dg-do compile { target c++17_down } } |
| 2 |
// { dg-options "-Wno-pointer-arith" } |
| 3 |
|
| 4 |
struct X {}; |
| 5 |
bool operator<= (X, X); |
| 6 |
template<bool (X, X)> struct Y {}; |
| 7 |
Y<&operator<=> y; |
| 8 |
bool foo (bool (*fn) (X, X), int n) { return n+&operator<=> fn; } |