summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/ssa-fre-2.c
blob: 5ce47d2158726d29973201006c7f1e76cfff8b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run } */

int x;
int main()
{
  int i = 0;
  x = 0;
  if (x)
    {
      for (; i < 10; ++i)
	{
doit:
	  x = i;
	}
    }
  if (!x)
    goto doit;
  if (x != 9)
    __builtin_abort ();
  return 0;
}