struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020225-1.c
blob4250d4f1a96870459ccbb907a5b2a51122e6f6cf
1 /*
2 20020225-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* This testcase failed at -O2 on powerpc64 due to andsi3 writing
12 nonzero bits to the high 32 bits of a 64 bit register. */
14 unsigned long foo (unsigned long base, unsigned int val)
16 return base + (val & 0x80000001);
19 void testTortureExecute (void)
21 if (foo (0L, 0x0ffffff0) != 0L)
22 ASSERT (0);
23 return;