* tests/test-stdcountof-h.c (test_func): Don't test ISO C initializer
syntax in C++ mode.
+2026-01-14 Bruno Haible <bruno@clisp.org>
+
+ stdcountof-h tests: Avoid compilation error in C++ mode.
+ * tests/test-stdcountof-h.c (test_func): Don't test ISO C initializer
+ syntax in C++ mode.
+
2026-01-13 Paul Eggert <eggert@cs.ucla.edu>
maint: pacify -Wdiscarded-qualifiers
ASSERT (countof (unbounded) >= 0);
#endif
+ /* Avoid MSVC C++ error C4576 "a parenthesized type followed by an
+ initializer list is a non-standard explicit type conversion syntax". */
+#if !defined __cplusplus
ASSERT (countof ((int[]) { integer, integer, integer }) == 3);
ASSERT (countof (((int[]) { integer, integer, integer })) == 3);
+#endif
/* Check that countof(...) is an expression of type size_t. */
#if !defined __cplusplus && HAVE__GENERIC