Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr109002.c

raw
1 /* { dg-do run } */
2 /* { dg-additional-options "-ftree-pre -ftree-partial-pre" } */
3
4 extern void exit (int);
5
6 int g;
7 int h;
8
9 void __attribute__((noipa)) bar ()
10 {
11 if (g)
12 exit (0);
13 }
14
15 int main(void)
16 {
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;
25 }
26 }
27 }