From da5d5b242669f685e187d3356dcc083087624d56 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 22 Apr 2026 14:46:50 +0200 Subject: Add a regression test for wcrtomb This was fixed in a255506ca487250255f9f048e61cf90166ceab77 --- tests/Makefile | 1 + tests/test_wcrtomb.c | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/test_wcrtomb.c diff --git a/tests/Makefile b/tests/Makefile index d19e3d8..71fb930 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -93,6 +93,7 @@ RUNTIME_TARGETS= \ test_vsnprintf_dynamic \ test_vsnprintf_static \ test_vsprintf \ + test_wcrtomb \ test_wcscat_static_write \ test_wcscpy_static_write \ 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 @@ +#include "common.h" + +#include + +int main() { + char c; + wcrtomb(&c, L'0', NULL); + return 0; +} -- cgit v1.3