aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr102540.c
blob: c12f8fcebfb2e813bc741e94793c6c868c643f95 (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 "-O3 -fdump-tree-evrp" } */


void kill();

static long a;
static unsigned b;
int test1 () {
    long c, e;
    c = b = a;
    e = c ? 2 / (c + 1) : 0;
    if (e && !b)
        kill ();
    a = 0;
}

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