summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2026-04-22 14:46:50 +0200
committerjvoisin2026-04-22 14:51:11 +0200
commitda5d5b242669f685e187d3356dcc083087624d56 (patch)
treebc05df9303ca92c76b6b9ce93274e83dd2ff44b4 /tests
parent5ac7e1b695281ebdcfe365176d40053764d44684 (diff)
Add a regression test for wcrtombHEADmaster
This was fixed in a255506ca487250255f9f048e61cf90166ceab77
Diffstat (limited to 'tests')
-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}