aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104530.c
blob: 1ec10154e1b65064bc323803a380d74a04e91906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-evrp" } */

void foo(void);

static int a, *b = &a, c, d = 1;

int main() {
    c = 0 == b;
    a = *b;
    if (c % d)
        for (; d; --d)
            foo();
    b = 0;
}


/* { dg-final { scan-tree-dump-not "foo" "evrp" } }  */