gcc/testsuite/gcc.dg/bitint-104.c
raw| 1 | /* PR tree-optimization/114555 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O -fno-tree-forwprop" } */ |
| 4 | |
| 5 | #if __BITINT_MAXWIDTH__ >= 4139 |
| 6 | struct S { _BitInt(31) : 6; _BitInt(513) b : 241; } s; |
| 7 | _BitInt(4139) a; |
| 8 | #endif |
| 9 | |
| 10 | void |
| 11 | foo (void) |
| 12 | { |
| 13 | #if __BITINT_MAXWIDTH__ >= 4139 |
| 14 | int i = 0; |
| 15 | a -= s.b << i; |
| 16 | #endif |
| 17 | } |