diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 1 | ||||
| -rw-r--r-- | tests/test_vprintf.c | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index c862c52..4c127b5 100644 --- a/tests/Makefile +++ b/tests/Makefile | |||
| @@ -113,6 +113,7 @@ RUNTIME_TARGETS= \ | |||
| 113 | test_vsnprintf_dynamic \ | 113 | test_vsnprintf_dynamic \ |
| 114 | test_vsnprintf_static \ | 114 | test_vsnprintf_static \ |
| 115 | test_vsprintf \ | 115 | test_vsprintf \ |
| 116 | test_vprintf \ | ||
| 116 | test_wcscat_static_write \ | 117 | test_wcscat_static_write \ |
| 117 | test_wcscpy_static_write \ | 118 | test_wcscpy_static_write \ |
| 118 | test_wcsncat_static_write \ | 119 | test_wcsncat_static_write \ |
diff --git a/tests/test_vprintf.c b/tests/test_vprintf.c new file mode 100644 index 0000000..e2e963e --- /dev/null +++ b/tests/test_vprintf.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <stdarg.h> | ||
| 4 | #include <stdio.h> | ||
| 5 | |||
| 6 | void wrap(char *format, ...) { | ||
| 7 | va_list args; | ||
| 8 | va_start(args, format); | ||
| 9 | vprintf(format, args); | ||
| 10 | va_end(args); | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | int main(int argc, char** argv) { | ||
| 15 | wrap("%s", "1234567"); | ||
| 16 | } | ||
