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

37 lines
311 B
C

long val = 0x5e000000;
long
f1 (void)
{
return 0x132;
}
long
f2 (void)
{
return 0x5e000000;
}
void
f3 (long b)
{
val = b;
}
void
f4 ()
{
long v = f1 ();
long o = f2 ();
v = (v & 0x00ffffff) | (o & 0xff000000);
f3 (v);
}
main ()
{
f4 ();
if (val != 0x5e000132)
abort ();
exit (0);
}