struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-950511-1.c
blob05da7b71355ff0f1ce8319f6ca9730c070dafc52
1 /*
2 950511-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 void
12 testTortureExecute (void)
14 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16) && !defined(__SDCC_pdk14)
16 unsigned long long xx;
17 unsigned long long *x = (unsigned long long *) &xx;
19 *x = -3;
20 *x = *x * *x;
21 if (*x != 9)
22 ASSERT (0);
23 return;
25 #endif