Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pr102880.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 void foo(void);
5
6 static int b, c, d, e, f, ah;
7 static short g, ai, am, aq, as;
8 static char an, at, av, ax, ay;
9 static char a(char h, char i) { return i == 0 || h && i == 1 ? 0 : h % i; }
10 static void ae(int h) {
11 if (a(b, h))
12 foo();
13
14 }
15 int main() {
16 ae(1);
17 ay = a(0, ay);
18 ax = a(g, aq);
19 at = a(0, as);
20 av = a(c, 1);
21 an = a(am, f);
22 int al = e || ((a(1, ah) && b) & d) == 2;
23 ai = al;
24 }
25
26 /* We should eliminate the call to foo. */
27 /* { dg-final { scan-tree-dump-not "foo" "optimized" } } */