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

void foo(void);

static int a, b = 1, *c = &b;
int main() {
  for (; a; a--) {
    int d = 2 >> (1 / *c);
    if (!d)
      foo();
  }
}

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