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

29 lines
226 B
C

#include <limits.h>
int n = 0;
g (i)
{
n++;
}
f (m)
{
int i;
i = m;
do
{
g (i * 4);
i -= INT_MAX / 8;
}
while (i > 0);
}
main ()
{
f (INT_MAX/8*4);
if (n != 4)
abort ();
exit (0);
}