summaryrefslogtreecommitdiff
path: root/tests/test_vfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_vfprintf.c')
-rw-r--r--tests/test_vfprintf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_vfprintf.c b/tests/test_vfprintf.c
new file mode 100644
index 0000000..8ccf994
--- /dev/null
+++ b/tests/test_vfprintf.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 vfprintf(stdout, format, args);
10 va_end(args);
11}
12
13
14int main(int argc, char** argv) {
15 wrap("%s", "1234567");
16}