struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-950915-1.c
blobc95a54bacc8abe0fc299dc055f9885e133e5b83d
1 /*
2 950915-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) && !defined(__SDCC_pdk14)
12 long int a = 100000;
13 long int b = 21475;
15 long
16 f ()
18 return ((long long) a * (long long) b) >> 16;
20 #endif
22 void
23 testTortureExecute (void)
25 #if !defined(__SDCC_pic14) && !defined(__SDCC_pic16) && !defined(__SDCC_pdk14)
26 if (f () < 0)
27 ASSERT (0);
28 return;
29 #endif