summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2023-09-30 20:24:58 +0200
committerjvoisin2023-09-30 20:24:58 +0200
commit76fef96b2b29fc90cdfea3e595ab98d267c6b965 (patch)
treec3d5591a1782ec92ae2a9e9cf2739db681875841 /tests
parent160298c6fb4c5151ef58ef1556ae2c271d8a9a9e (diff)
Add `vprintf`
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rw-r--r--tests/test_vprintf.c16
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
6void wrap(char *format, ...) {
7 va_list args;
8 va_start(args, format);
9 vprintf(format, args);
10 va_end(args);
11}
12
13
14int main(int argc, char** argv) {
15 wrap("%s", "1234567");
16}