Debian Codegraph @

gcc/testsuite/gcc.dg/pr98845.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-dce -fno-tree-dse" } */
3
4 int n;
5
6 __attribute__ ((returns_twice)) void
7 foo (void);
8
9 void
10 bar (void);
11
12 void
13 quux (int x)
14 {
15 if (x)
16 ++x;
17 else
18 {
19 if (n)
20 {
21 x = 1;
22 foo ();
23 }
24 else
25 bar ();
26
27 if (n)
28 {
29 ++x;
30 ++n;
31 }
32 }
33 }