struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20060110-1.c
blobfdd40d2d436a98b4aed2286a92c98c92f7a8da74
1 /*
2 20060110-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 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
12 long long
13 f (long long a)
15 return (a << 32) >> 32;
17 long long a = 0x1234567876543210LL;
18 long long b = (0x1234567876543210LL << 32) >> 32;
19 #endif
21 void
22 testTortureExecute (void)
24 #if !defined (__SDCC_mcs51)
25 if (f (a) != b)
26 ASSERT (0);
27 return;
28 #endif