struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr78378.c
blob193148ea46353faa4ef61c66559269a2c573b1f8
1 /*
2 pr78378.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 #ifndef __SDCC_pdk14 // Lack of memory
12 /* PR rtl-optimization/78378 */
13 unsigned long long
14 foo (unsigned long long x)
16 x <<= 41;
17 x /= 232;
18 return 1 + (unsigned short) x;
20 #endif
22 void
23 testTortureExecute (void)
25 #ifndef __SDCC_pdk14 // Lack of memory
26 unsigned long long x = foo (1);
27 if (x != 0x2c24)
28 ASSERT(0);
29 return;
30 #endif