summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile1
-rw-r--r--tests/test_wcrtomb.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index d19e3d8..71fb930 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -93,6 +93,7 @@ RUNTIME_TARGETS= \
93 test_vsnprintf_dynamic \ 93 test_vsnprintf_dynamic \
94 test_vsnprintf_static \ 94 test_vsnprintf_static \
95 test_vsprintf \ 95 test_vsprintf \
96 test_wcrtomb \
96 test_wcscat_static_write \ 97 test_wcscat_static_write \
97 test_wcscpy_static_write \ 98 test_wcscpy_static_write \
98 test_wcsncat_static_write \ 99 test_wcsncat_static_write \
diff --git a/tests/test_wcrtomb.c b/tests/test_wcrtomb.c
new file mode 100644
index 0000000..e4bc885
--- /dev/null
+++ b/tests/test_wcrtomb.c
@@ -0,0 +1,9 @@
1#include "common.h"
2
3#include <wchar.h>
4
5int main() {
6 char c;
7 wcrtomb(&c, L'0', NULL);
8 return 0;
9}