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

23 lines
235 B
C

#include <limits.h>
int a[2];
f (int i)
{
for (; i < INT_MAX; i++)
{
a[i] = -2;
if (&a[i] == &a[1])
break;
}
}
main ()
{
a[0] = a[1] = 0;
f (0);
if (a[0] != -2 || a[1] != -2)
abort ();
exit (0);
}