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

23 lines
245 B
C

int
f (unsigned bitcount, int mant)
{
int mask = -1 << bitcount;
{
if (! (mant & -mask))
goto ab;
if (mant & ~mask)
goto auf;
}
ab:
return 0;
auf:
return 1;
}
main ()
{
if (f (0, -1))
abort ();
exit (0);
}