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

18 lines
204 B
C

foo (a, p)
int *p;
{
int old, new, i;
old = 0;
for (i = 1; i < 100; i++)
{
new = p[i];
if (new < old)
a++;
old = new;
if (old == 0)
return 0;
}
return a;
}