Test va_copy in tcctest.c

This commit is contained in:
Shinichiro Hamaji 2010-12-28 17:53:56 +09:00
parent 45e1ae2896
commit 83f0a7b6f8

View File

@ -1786,14 +1786,15 @@ void manyarg_test(void)
void vprintf1(const char *fmt, ...)
{
va_list ap;
va_list ap, aq;
const char *p;
int c, i;
double d;
long long ll;
long double ld;
va_start(ap, fmt);
va_start(aq, fmt);
va_copy(ap, aq);
p = fmt;
for(;;) {
@ -1829,6 +1830,7 @@ void vprintf1(const char *fmt, ...)
}
}
the_end:
va_end(aq);
va_end(ap);
}