Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/980716-1.c

raw
1 #include <stdarg.h>
2
3 void abort (void);
4 void exit (int);
5
6 void
7 stub(int num, ...)
8 {
9 va_list ap;
10 char *end;
11 int i;
12
13 for (i = 0; i < 2; i++) {
14 va_start(ap, num);
15 while ( 1 ) {
16 end = va_arg(ap, char *);
17 if (!end) break;
18 }
19 va_end(ap);
20 }
21 }
22
23 int
24 main()
25 {
26 stub(1, "ab", "bc", "cx", (char *)0);
27 exit (0);
28 }
29