struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-990117-1.c
blob7444efc61e454e3071e3502a4cfe3b7ef56ec330
1 /*
2 990117-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 93
10 #endif
12 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
13 int
14 foo (int x, int y, int i, int j)
16 double tmp1 = ((double) x / y);
17 double tmp2 = ((double) i / j);
19 return tmp1 < tmp2;
21 #endif
23 void
24 testTortureExecute (void)
26 #if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
27 if (foo (2, 24, 3, 4) == 0)
28 ASSERT (0);
29 return;
30 #endif