On Wed, May 21, 2025 at 11:01:38PM +0200, Alejandro Colomar wrote:
> It has been standardized in C2y.
> 
> gcc/c/ChangeLog:
> 
>       * c-parser.cc (c_parser_sizeof_or_countof_expression):
>       Add -Wpedantic diagnostic for _Countof in <= C23 mode.
> 
> gcc/testsuite/ChangeLog:
> 
>       * gcc.dg/countof-compat.c:
>       Test _Countof diagnostics with -Wc23-c2y-compat on C2y.
>       * gcc.dg/countof-no-compat.c:
>       Test _Countof diagnostics with -Wno-c23-c2y-compat on C23.
>       * gcc.dg/countof-pedantic.c:
>       Test _Countof diagnostics with -pedantic on C23.
>       * gcc.dg/countof-pedantic-errors.c:
>       Test _Countof diagnostics with -pedantic-errors on C23.

For new test files, just say : New test.

        Jakub

Reply via email to