libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / bitint-104.c
blobb4aac83137be4405d8ef0733e0046c1df0702ed0
1 /* PR tree-optimization/114555 */
2 /* { dg-do compile { target bitint } } */
3 /* { dg-options "-std=c23 -O -fno-tree-forwprop" } */
5 #if __BITINT_MAXWIDTH__ >= 4139
6 struct S { _BitInt(31) : 6; _BitInt(513) b : 241; } s;
7 _BitInt(4139) a;
8 #endif
10 void
11 foo (void)
13 #if __BITINT_MAXWIDTH__ >= 4139
14 int i = 0;
15 a -= s.b << i;
16 #endif