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

void foo();
static char a, c;
static int d, e;
static short b(short f, short g) { return f * g; }
int main() {
  short h = 4;
  for (; d;)
    if (h)
      if(e) {
        if (!b(a & 1 | h, 3))
          c = 0;
        h = 1;
      }
  if (c)
    foo();
}

/* { dg-final { scan-tree-dump-not "c = 0" "evrp" } } */