struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-921124-1.c
blob239c602a10666cf2a574f47cf36c2a60fd5a125d
1 /*
2 921124-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 #pragma disable_warning 85
11 #endif
13 #if !defined(__SDCC_pic14) // Pseudo-stack size limit
14 int f(int x, double d1, double d2, double d3)
16 return x;
19 void g(char *b, char *s, double x, double y, int i, int j)
21 #if !defined(__SDCC_pdk14) // Lack of memory
22 if (x != 1.0 || y != 2.0 || i != 3 || j != 4)
23 ASSERT(0);
24 #endif
26 #endif
28 void
29 testTortureExecute (void)
31 #if !defined(__SDCC_pic14) // Pseudo-stack size limit
32 g("","", 1.0, 2.0, f(3, 0.0, 0.0, 0.0), f(4, 0.0, 0.0, 0.0));
33 return;
34 #endif