2 stdarg-2.c from the execute part of the gcc torture tests.
8 #pragma disable_warning 93
17 #if 0 // TODO: Enable when SDCC supports long double!
19 foo (int v
, va_list ap
)
24 foo_arg
= va_arg (ap
, int);
25 foo_arg
+= va_arg (ap
, double);
26 foo_arg
+= va_arg (ap
, long long);
29 foo_arg
= va_arg (ap
, long long);
30 foo_arg
+= va_arg (ap
, double);
33 foo_arg
= va_arg (ap
, int);
34 foo_arg
+= va_arg (ap
, long double);
46 if (va_arg (gap
, int) != 13 || va_arg (gap
, double) != -14.0)
56 x
= va_arg (gap
, long);
73 x
= va_arg (aps
[4], long);
95 struct A
{ int i
; va_list g
; va_list h
[2]; };
102 x
= va_arg (a
.g
, long);
128 va_start (a
.h
[1], i
);
129 x
= va_arg (a
.h
[1], long);
137 va_start (a
.h
[1], i
);
146 va_start (a
.h
[1], i
);
152 testTortureExecute (void)
158 f2 (0x4002, 13, -14.0);
159 if (bar_arg
!= 0x4002)
167 f5 (5, 1, 19.0, 18LL);
176 f8 (8, 2031LL, 13.0);
185 f12 (11, 2030, 12.0L);