summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/loop-1.c
blob: 81aeeb6b392c036da6e254acd795d07c5224d92f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
main ()
{
  int i, j, k[3];

  j = 0;
  for (i=0; i < 3; i++)
    {
      k[i] = j++;
    }

  for (i=2; i >= 0; i--)
    {
      if (k[i] != i)
	abort ();
    }

  exit (0);
}