8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/loop-1.c
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

19 lines
177 B
C

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);
}