2 stdarg-1.c from the execute part of the gcc torture tests.
8 #pragma disable_warning 93
9 #pragma disable_warning 85
21 foo (int v
, va_list ap
)
25 case 5: foo_arg
= va_arg (ap
, int); break;
30 #if 0 // TODO: Enable when SDCC support long double!
36 if (va_arg (gap
, double) != 17.0
37 || va_arg (gap
, long) != 129L)
42 if (va_arg (*pap
, long long) != 14LL
43 || va_arg (*pap
, long double) != 131.0L
44 || va_arg (*pap
, int) != 17)
63 #if 0 // TODO: Enable when SDCC support long double!
70 x
= va_arg (ap
, long);
80 d
= va_arg (ap
, double);
89 x
= va_arg (ap
, double);
113 x
= va_arg (ap
, long);
135 d
= va_arg (ap
, double);
140 testTortureExecute (void)
145 #if 0 // TODO: Enable when SDCC support long double!
147 if (bar_arg
!= 28 || x
!= 28)
153 if (x
!= 16 || foo_arg
!= 128)
155 f5 (0x4006, 17.0, 129L);
156 if (bar_arg
!= 0x4006)
158 f6 (7, 12L, 14L, -31L);
161 f7 (0x4008, 14LL, 131.0L, 17, 26.0);
162 if (bar_arg
!= 0x4008)
164 f8 (0x4008, 14LL, 131.0L, 17, 27.0);
165 if (bar_arg
!= 0x4008 || d
!= 27.0)