struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-multdi-1.c
blob30150f62dadbe16945688881de21bdb3a60d3970
1 /*
2 multdi-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 /* PR target/9348 */
9 #define u_l_l unsigned long long
10 #define l_l long long
12 l_l mpy_res;
14 #ifndef __SDCC_pdk14 // Lack of memory
15 u_l_l mpy (long a, long b)
17 return (u_l_l) a * (u_l_l) b;
19 #endif
21 void
22 testTortureExecute (void)
24 #ifndef __SDCC_pdk14 // Lack of memory
25 mpy_res = mpy(1,-1);
26 if (mpy_res != -1LL)
27 ASSERT (0);
28 return;
29 #endif