8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/loop-3.c

28 lines
204 B
C
Raw Normal View History

1997-08-19 03:34:40 -04:00
#include <limits.h>
int n = 0;
g (i)
{
n++;
}
f (m)
{
int i;
i = m;
do
{
g (i * INT_MAX / 2);
}
while (--i > 0);
}
main ()
{
f (4);
if (n != 4)
abort ();
exit (0);
}