Debian Codegraph @

gcc/testsuite/gcc.dg/pr110918.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-optimized" } */
3
4 static char b = 53;
5 static unsigned c;
6 void foo(void);
7 static int(a)(int d, int e) { return (d ^ e) < 0 ? d : d - e; }
8 int main() {
9 {
10 int f = 2;
11 c = b;
12 b = 0;
13 for (; c <= 6;) {
14 if (f >= 2)
15 f = 0;
16 for (; f >= -9; f = a(f, 8))
17 if (!(f >= -8 && f <= 0))
18 foo();
19 }
20 }
21 }
22
23
24 /* { dg-final { scan-tree-dump-not "foo" "optimized" } } */
25
26