2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 980716-1.c
blob91e5518d53f8f9a9924d45217f6ad550d420f039
1 #include <stdarg.h>
3 void
4 stub(int num, ...)
6 va_list ap;
7 char *end;
8 int i;
10 for (i = 0; i < 2; i++) {
11 va_start(ap, num);
12 while ( 1 ) {
13 end = va_arg(ap, char *);
14 if (!end) break;
16 va_end(ap);
20 int
21 main()
23 stub(1, "ab", "bc", "cx", 0);
24 exit (0);