aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr115933.c
blob: 041597ae3309413917b7a060b2f87d185ae59b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR rtl-optimization/115933 */
/* { dg-do run } */
/* { dg-options "-O1 -fno-tree-loop-optimize -ftree-vrp -fno-tree-ch -fgcse" } */

int a, b;
unsigned c() {
  int d, e = d = 2;
  if (a < 0)
    for (e = 0; e < 1; e++)
      d = 0;
  b = e;
  return d;
}
int main() {
  c();
  if (b != 2)
    __builtin_abort();
  return 0;
}