struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-pr42544.c
blobbda30ecf921c6f38aa06de9587aa735e349ace87
1 /*
2 pr42544.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 c/42544 */
13 extern void abort (void);
15 void
16 testTortureExecute (void)
18 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
19 // TODO: Enable once pic14, pic16 support long long literals.
20 signed short s = -1;
21 if (sizeof (long long) == sizeof (unsigned int))
22 return;
23 #ifndef PORT_HOST // Fails on Solaris for host - probably an old gcc version.
24 if ((unsigned int) s >= 0x100000000ULL)
25 ASSERT (0);
26 #endif
27 return;
28 #endif