gcc/testsuite/gcc.dg/bitint-10.c
raw| 1 | /* PR c/102989 */ |
| 2 | /* { dg-do compile { target { bitint && dfp } } } */ |
| 3 | /* { dg-options "-O2 -std=c23 -pedantic-errors" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 129 |
| 6 | void |
| 7 | foo (_BitInt(129) *x, _Decimal64 *y) |
| 8 | { |
| 9 | x[0] = y[0]; |
| 10 | y[1] = x[1]; |
| 11 | } |
| 12 | #endif |
| 13 | |
| 14 | /* _Decimal* <-> _BitInt conversions are unsupported for now. */ |
| 15 | /* { dg-prune-output "unsupported conversion between" } */ |