* tests/test-stdcountof-h.c (test_func): Use top-level non-constant.
2026-01-13 Paul Eggert <eggert@cs.ucla.edu>
+ stdcountof-h-tests: pacify -Wnested-externs
+ * tests/test-stdcountof-h.c (test_func): Use top-level non-constant.
+
isinf-no-c++-tests: pacify -Wshadow
* tests/test-isinf.c (mem_long_double): Rename this local type
from memory_long_double, to avoid confusion with the top-level
ASSERT (countof (unbounded) >= 0);
#endif
- {
- extern int a, b, c;
- ASSERT (countof ((int[]) { a, b, c }) == 3);
- ASSERT (countof (((int[]) { a, b, c })) == 3);
- }
+ ASSERT (countof ((int[]) { integer, integer, integer }) == 3);
+ ASSERT (countof (((int[]) { integer, integer, integer })) == 3);
/* Check that countof(...) is an expression of type size_t. */
#if !defined __cplusplus && HAVE__GENERIC