2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20000519-1.c
blobeec5bdd8fada33ee392eba2d7ec03fa6caf1305a
1 #include <stdarg.h>
3 int
4 bar (int a, va_list ap)
6 int b;
8 do
9 b = va_arg (ap, int);
10 while (b > 10);
12 return a + b;
15 int
16 foo (int a, ...)
18 va_list ap;
20 va_start (ap, a);
21 return bar (a, ap);
24 int
25 main ()
27 if (foo (1, 2, 3) != 3)
28 abort ();
29 return 0;