libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr112430.c
blob16c34fcbc69dc7732e2a098b6356b163545dd577
1 /* PR middle-end/112430 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -g" } */
5 int a, b, c, d, e;
6 unsigned int f;
8 static void
9 foo (unsigned int x)
11 unsigned int g = x < c;
12 int h = f < b;
13 x += h;
14 g += x < h;
15 f = x;
16 x = g;
17 g = f += a;
18 h = f < a;
19 x += h;
20 c += f < d;
21 x += c;
22 g += x < c;
23 e = g;
26 void
27 bar (unsigned int x)
29 foo (x);