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

19 lines
224 B
C

int a[2];
f (b)
{
unsigned int i;
int *p;
for (p = &a[b], i = b; --i < ~0; )
*--p = i * 3 + (int)a;
}
main ()
{
a[0] = a[1] = 0;
f (2);
if (a[0] != (int)a || a[1] != (int)a + 3)
abort ();
exit (0);
}