diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-05-26 22:11:32 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-05-26 22:11:32 +0200 |
commit | bc1e43ea95b9455cdccee442db77bc5fafd3dcc6 (patch) | |
tree | 4e82b5f50870603f42ec46d57e543c3e10fb1f4f /test/kvx/lib/printf.c | |
parent | b4a08d0815342b6238d307864f0823d0f07bb691 (diff) | |
download | compcert-kvx-bc1e43ea95b9455cdccee442db77bc5fafd3dcc6.tar.gz compcert-kvx-bc1e43ea95b9455cdccee442db77bc5fafd3dcc6.zip |
tests for kvx
Diffstat (limited to 'test/kvx/lib/printf.c')
-rw-r--r-- | test/kvx/lib/printf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/kvx/lib/printf.c b/test/kvx/lib/printf.c new file mode 100644 index 00000000..79984ef6 --- /dev/null +++ b/test/kvx/lib/printf.c @@ -0,0 +1,9 @@ +#include <stdio.h> +#include <stdarg.h> + +int __wrap_printf(const char *format, ...){ + va_list args; + va_start(args, format); + vprintf(format, args); + va_end(args); +} |