* tests/test-uchar-h.c: Move #include <wchar.h> after most other tests
are done.
+2026-04-25 Bruno Haible <bruno@clisp.org>
+
+ uchar-h tests: Strengthen tests.
+ * tests/test-uchar-h.c: Move #include <wchar.h> after most other tests
+ are done.
+
2026-04-24 Paul Eggert <eggert@cs.ucla.edu>
regex: be consistent with dfa
#include <config.h>
+/* Specification. */
#include <uchar.h>
-#include <wchar.h>
-
-#if _GL_WCHAR_T_IS_UCS4
-static_assert (sizeof (char32_t) == sizeof (wchar_t));
-#endif
/* Check that the types are defined. */
mbstate_t a = { 0 };
/* Check that char32_t is at least 31 bits wide. */
static_assert ((char32_t)0x7FFFFFFF != (char32_t)0x3FFFFFFF);
+
+/* Checks relating to wchar_t. */
+
+#include <wchar.h>
+
+#if _GL_WCHAR_T_IS_UCS4
+static_assert (sizeof (char32_t) == sizeof (wchar_t));
+#endif
+
/* Check that _GL_SMALL_WCHAR_T is correctly defined. */
#if _GL_SMALL_WCHAR_T
static_assert (sizeof (wchar_t) < sizeof (char32_t));
static_assert (sizeof (wchar_t) == sizeof (char32_t));
#endif
+
int
main (void)
{