gcc/testsuite/gcc.dg/bitint-53.c
raw| 1 | /* PR tree-optimization/112940 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O2" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 1025 |
| 6 | _BitInt (1025) b; |
| 7 | #endif |
| 8 | |
| 9 | void |
| 10 | foo (long x) |
| 11 | { |
| 12 | #if __BITINT_MAXWIDTH__ >= 1025 |
| 13 | b += (unsigned _BitInt (255)) x; |
| 14 | #else |
| 15 | (void) x; |
| 16 | #endif |
| 17 | } |