struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-va-arg-20.c
blobbfc1731f3c3b28c33547c5c0cb7087f2fd2c693f
1 /*
2 va-arg-20.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #pragma disable_warning 85
9 #include <stdarg.h>
11 void foo(va_list v)
13 unsigned long long x = va_arg (v, unsigned long long);
14 if (x != 16LL)
15 ASSERT(0);
18 void bar(char c, char d, ...)
20 va_list v;
21 va_start(v, d);
22 foo(v);
23 va_end(v);
26 void
27 testTortureExecute (void)
29 bar(0, 0, 16LL);
30 return;