8sa1-gcc/gcc/testsuite/gcc.c-torture/execute/loop-4b.c
J"orn Rennecke ef75736785 Document overflow bug in check_dbra_loop:
* execute/loop-4b.c: New test.

From-SVN: r21999
1998-08-26 09:19:18 +01:00

22 lines
208 B
C

int
f()
{
int j = 1;
long i;
i = 0x60000000L;
do
{
j <<= 1;
i += 0x10000000L;
} while (i < -0x60000000L);
return j;
}
int
main ()
{
if (f () != 2)
abort ();
exit (0);
}