struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2596.c
blobde2b535f6bc4e3c64af68e2d6933240d399b1386
1 /*
2 bug-?.c
3 */
5 #include <testfwk.h>
7 #include <stdarg.h>
9 int i;
11 static inline void f(int x, ...)
13 va_list v;
15 va_start(v, x);
17 i = va_arg(v, int);
19 va_end(v);
22 void testBug(void)
24 f(0, 1);
26 ASSERT(i == 1);