On Tue, 15 Oct 2024, Jakub Jelinek wrote:

> --- gcc/testsuite/gcc.dg/gnu11-empty-init-1.c.jj      2024-10-15 
> 16:14:23.411063701 +0200
> +++ gcc/testsuite/gcc.dg/gnu11-empty-init-1.c 2024-10-15 16:31:02.302984714 
> +0200
> @@ -0,0 +1,199 @@
> +/* Test GNU C11 support for empty initializers.  */
> +/* { dg-do run } */
> +/* { dg-options "-std=gnu23" } */

All these gnu11-*.c tests are using -std=gnu23, which doesn't make sense.  
If they're meant to test what GCC does in C11 mode, use -std=gnu11; if 
they're meant to use -std=gnu23, name them gnu23-*.c.  (In either case, 
the tests might, as now, also have -fzero-init-padding-bits= options when 
that's part of what they're meant to test.)

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to