gcc/testsuite/gcc.dg/bitint-103.c
raw| 1 | /* PR tree-optimization/114555 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O2" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 1225 |
| 6 | struct S { _BitInt(512) : 98; _BitInt(1225) b : 509; } s; |
| 7 | _BitInt(1225) a; |
| 8 | #endif |
| 9 | |
| 10 | void |
| 11 | foo (void) |
| 12 | { |
| 13 | #if __BITINT_MAXWIDTH__ >= 1225 |
| 14 | a ^= (unsigned _BitInt(1025)) s.b; |
| 15 | #endif |
| 16 | } |