mirror of
https://github.com/frida/tinycc
synced 2024-11-24 16:49:44 +03:00
Test va_copy in tcctest.c
This commit is contained in:
parent
45e1ae2896
commit
83f0a7b6f8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user