libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr109002.c
blob5575a4b9edc83e57bd1d315232b673d368554385
1 /* { dg-do run } */
2 /* { dg-additional-options "-ftree-pre -ftree-partial-pre" } */
4 extern void exit (int);
6 int g;
7 int h;
9 void __attribute__((noipa)) bar ()
11 if (g)
12 exit (0);
15 int main(void)
17 for (int i = 0; ; i++) {
18 for (int j = 0; j < g; j++);
19 if (i & 1) {
20 if (h)
21 continue;
22 if (g)
23 bar ();
24 g = 1;