struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-980716-1.c
blobda587e4459c033b5300225a0ba74d3145253d5e9
1 /*
2 980716-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #include <stdarg.h>
13 void
14 stub(int num, ...)
16 va_list ap;
17 char *end;
18 int i;
20 for (i = 0; i < 2; i++) {
21 va_start(ap, num);
22 while ( 1 ) {
23 end = va_arg(ap, char *);
24 if (!end) break;
26 va_end(ap);
30 void
31 testTortureExecute (void)
33 stub(1, "ab", "bc", "cx", 0);
34 return;