aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr103079.c
blob: 7b1075447256488cff608b9fe40a4d0c26ca9a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-Os -fdump-tree-vrp2 -fno-tree-ch" } */

int a, b = -2;
int main() {
  int d = 0;
  int t;
  if (b)
    goto t1;
  if (t) {
t1:
    if (!a)
      d = b;
    while (d > -1)
      ;
  }
  return 0;
}
/* { dg-final { scan-tree-dump "PHI" "vrp2" } } */