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

13 lines
170 B
C

long
f (long x)
{
return x / (-0x7fffffffL - 1L);
}
main ()
{
if (f (-1L) != 0L || f (0x7fffffffL) != 0L || f (-0x7fffffffL - 1L) != 1l)
abort ();
exit (0);
}