aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr71661.c
blob: c273ea1afd6d2924765cd96660cac6c1661356a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* { dg-do run } */
/* { dg-options "-O3 -fdisable-tree-ethread" } */

extern void exit (int);

int a, b;

void
fn1 ()
{
  unsigned c = 0;
  int d;
  b = a;
  if (a < 0)
    goto L1;
  for (; a < 1; a++)
    d = 0;
  for (; d < 2; d++)
    {
      for (c = 0; c < 3; c++)
      L1:
        a = 2;
    }
}

int
main ()
{
  fn1 ();
  exit (0);
}