gcc/testsuite/gcc.dg/bitint-102.c
raw| 1 | /* PR tree-optimization/114365 */ |
| 2 | /* { dg-do compile { target bitint } } */ |
| 3 | /* { dg-options "-std=c23 -O2" } */ |
| 4 | |
| 5 | struct S { |
| 6 | int : 31; |
| 7 | #if __BITINT_MAXWIDTH__ >= 129 |
| 8 | _BitInt(129) b : 129; |
| 9 | #else |
| 10 | _BitInt(63) b : 63; |
| 11 | #endif |
| 12 | } s; |
| 13 | |
| 14 | void |
| 15 | foo (int a) |
| 16 | { |
| 17 | s.b <<= a; |
| 18 | } |