struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20000731-1.c
blob75d404919f1ad13206fefe474aa58be257d86fa5
1 /*
2 20000731-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 93
10 #endif
12 double
13 foo (void)
15 return 0.0;
18 void
19 do_sibcall (void)
21 (void) foo ();
24 void
25 testTortureExecute (void)
27 #ifndef __SDCC_pdk14 // Lack of memory
28 #if !(defined (__SDCC_pdk15) && defined(__SDCC_STACK_AUTO)) // Lack of code memory
29 double x;
31 for (x = 0; x < 20; x++)
32 do_sibcall ();
33 if (!(x >= 10))
34 ASSERT (0);
35 return;
36 #endif
37 #endif