struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-va-arg-12.c
blob1c4af37e2bf53fbd3c30a55e0078c3b3c6d9c36c
1 /*
2 va-arg-12.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #pragma disable_warning 85
8 #pragma disable_warning 93
10 #include <stdarg.h>
12 /*typedef unsigned long L;*/
13 typedef double L;
14 void f (L p0, L p1, L p2, L p3, L p4, L p5, L p6, L p7, L p8, ...)
16 va_list select;
18 va_start (select, p8);
20 if (va_arg (select, L) != 10.)
21 ASSERT (0);
22 if (va_arg (select, L) != 11.)
23 ASSERT (0);
24 if (va_arg (select, L) != 0.)
25 ASSERT (0);
27 va_end (select);
30 void
31 testTortureExecute (void)
33 #ifndef __SDCC_pdk14 // Lack of memory
34 f (1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 0.);
35 return;
36 #endif