* tests/unistr/test-unistr-h.c: New file.
* modules/unistr/base-tests: New file.
* tests/unistr/test-unistr-h-c++.cc: New file.
* modules/unistr/base-c++-tests: New file.
+2025-10-03 Bruno Haible <bruno@clisp.org>
+
+ unistr/base: Add tests.
+ * tests/unistr/test-unistr-h.c: New file.
+ * modules/unistr/base-tests: New file.
+ * tests/unistr/test-unistr-h-c++.cc: New file.
+ * modules/unistr/base-c++-tests: New file.
+
2025-10-03 Bruno Haible <bruno@clisp.org>
unistr, unigbrk: Fix compilation error in C++ mode (regr. 2025-02-09).
--- /dev/null
+Files:
+tests/unistr/test-unistr-h-c++.cc
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-unistr-h-c++
+check_PROGRAMS += test-unistr-h-c++
+test_unistr_h_c___SOURCES = unistr/test-unistr-h-c++.cc
+test_unistr_h_c___LDADD = $(LDADD) $(LIBUNISTRING)
+endif
--- /dev/null
+Files:
+tests/unistr/test-unistr-h.c
+
+Depends-on:
+unistr/base-c++-tests
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-unistr-h
+check_PROGRAMS += test-unistr-h
+test_unistr_h_SOURCES = unistr/test-unistr-h.c
+test_unistr_h_LDADD = $(LDADD) $(LIBUNISTRING)
--- /dev/null
+/* Test of <unistr.h> in C++ mode.
+ Copyright (C) 2025 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+/* Specification. */
+#include <unistr.h>
+
+int
+main ()
+{
+}
--- /dev/null
+/* Test of <unistr.h>.
+ Copyright (C) 2025 Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+/* Specification. */
+#include <unistr.h>
+
+int
+main (void)
+{
+ return 0;
+}