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

31 lines
288 B
C

barfoo (a)
{
return (a << 16) & ~0xffff;
}
foobar (a)
{
return ((unsigned short) a) << 15;}
foo (a)
{
return (a & 0x121) << 31;
}
bar (a)
{
return (a & ~0xffff) << 16;
}
main ()
{
int a;
for (a = 1; a; a += a)
{
printf ("%d", (foo (a)));
}
puts ("");
}