| 1 |
// { dg-do compile { target c++20 } } |
| 2 |
// { dg-options "-fext-numeric-literals" } |
| 3 |
|
| 4 |
int main() |
| 5 |
{ |
| 6 |
// GCC complex literal extension |
| 7 |
{ constexpr auto v = 1 <=> 1i; } // { dg-error "invalid operands" } |
| 8 |
{ constexpr auto v = 1i <=> 1.0i; } // { dg-error "invalid operands" } |
| 9 |
} |