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

15 lines
187 B
C

unsigned long*
f(p)unsigned long*p;
{
unsigned long a = (*p++) >> 24;
return p + a;
}
main ()
{
unsigned long x = 0x80000000UL;
if (f(&x) != &x + 0x81)
abort();
exit(0);
}