History

Test va_copy in tcctest.c

Shinichiro Hamaji committed 15 years ago

Commit 83f0a7b1 parent 45e1ae21 file · +4 −2Browse files

Unified · Split

tests/tcctest.c+4−2
@@ -1786,14 +1786,15 @@ void manyarg_test(void) · 1785 unmodified lines
1786 1786
1787void vprintf1(const char *fmt, ...)1787void vprintf1(const char *fmt, ...)
1788{1788{
1789 va_list ap;1789 va_list ap, aq;
1790 const char *p;1790 const char *p;
1791 int c, i;1791 int c, i;
1792 double d;1792 double d;
1793 long long ll;1793 long long ll;
1794 long double ld;1794 long double ld;
1795 1795
1796 va_start(ap, fmt);1796 va_start(aq, fmt);
1797 va_copy(ap, aq);
1797 1798
1798 p = fmt;1799 p = fmt;
1799 for(;;) {1800 for(;;) {
@@ -1829,6 +1830,7 @@ void vprintf1(const char *fmt, ...) · 29 unmodified lines
1829 }1830 }
1830 }1831 }
1831 the_end:1832 the_end:
1833 va_end(aq);
1832 va_end(ap);1834 va_end(ap);
1833}1835}
1834 1836

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t