struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20031216-1.c
blob2d9781a2e5a29495038a5b5c2450d716aed5b9f0
1 /*
2 20031216-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 /* PR optimization/13313 */
12 /* Origin: Mike Lerwill <mike@ml-solutions.co.uk> */
14 void DisplayNumber (unsigned long v)
16 if (v != 0x9aL)
17 ASSERT (0);
20 unsigned long ReadNumber (void)
22 return 0x009a0000L;
25 void
26 testTortureExecute (void)
28 unsigned long tmp;
29 tmp = (ReadNumber() & 0x00ff0000L) >> 16;
30 DisplayNumber (tmp);
31 return;