Debian Codegraph @

gcc/testsuite/gcc.dg/pr104530.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-evrp" } */
3
4 void foo(void);
5
6 static int a, *b = &a, c, d = 1;
7
8 int main() {
9 c = 0 == b;
10 a = *b;
11 if (c % d)
12 for (; d; --d)
13 foo();
14 b = 0;
15 }
16
17
18 /* { dg-final { scan-tree-dump-not "foo" "evrp" } } */
19