struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000523-1.c
blob7556ef22d5bc3616058ef56939b87fde242909ef
1 /*
2 20000523-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 void
12 testTortureExecute (void)
14 long long x;
15 int n;
17 if (sizeof (long long) < 8)
18 return;
20 n = 9;
21 x = (((long long) n) << 55) / 0xff;
23 if (x == 0)
24 ASSERT (0);
26 x = (((long long) 9) << 55) / 0xff;
28 if (x == 0)
29 ASSERT (0);
31 return;