PR c/117025 gcc/testsuite/ChangeLog:
* gcc.dg/countof-vla.c: Remove spurious comments. * gcc.dg/countof-zero-compile.c: Remove spurious comments. Fixes: 517c9487f8fd (2025-05-27; "c: Add _Countof operator [PR117025]") Reported-by: Sam James <s...@gentoo.org> Signed-off-by: Alejandro Colomar <a...@kernel.org> --- Hi Sam, Thanks for catching that! Here's a fix. We can just drop those comments. Have a lovely day! Alex gcc/testsuite/gcc.dg/countof-vla.c | 16 ++++++++-------- gcc/testsuite/gcc.dg/countof-zero-compile.c | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/testsuite/gcc.dg/countof-vla.c b/gcc/testsuite/gcc.dg/countof-vla.c index cc225df20689..68e650c4c844 100644 --- a/gcc/testsuite/gcc.dg/countof-vla.c +++ b/gcc/testsuite/gcc.dg/countof-vla.c @@ -6,7 +6,7 @@ void fix_fix (int i, int (*x)[_Countof (*a)], short (*)[_Generic(x, int (*)[3]: 1)]); void fix_var (int i, - char (*a)[3][i], /* dg-warn "variable" */ + char (*a)[3][i], int (*x)[_Countof (*a)], short (*)[_Generic(x, int (*)[3]: 1)]); void fix_uns (int i, @@ -15,20 +15,20 @@ void fix_uns (int i, short (*)[_Generic(x, int (*)[3]: 1)]); void var_fix (int i, - char (*a)[i][5], /* dg-warn "variable" */ - int (*x)[_Countof (*a)]); /* dg-warn "variable" */ + char (*a)[i][5], + int (*x)[_Countof (*a)]); void var_var (int i, - char (*a)[i][i], /* dg-warn "variable" */ - int (*x)[_Countof (*a)]); /* dg-warn "variable" */ + char (*a)[i][i], + int (*x)[_Countof (*a)]); void var_uns (int i, - char (*a)[i][*], /* dg-warn "variable" */ - int (*x)[_Countof (*a)]); /* dg-warn "variable" */ + char (*a)[i][*], + int (*x)[_Countof (*a)]); void uns_fix (int i, char (*a)[*][5], int (*x)[_Countof (*a)]); void uns_var (int i, - char (*a)[*][i], /* dg-warn "variable" */ + char (*a)[*][i], int (*x)[_Countof (*a)]); void uns_uns (int i, char (*a)[*][*], diff --git a/gcc/testsuite/gcc.dg/countof-zero-compile.c b/gcc/testsuite/gcc.dg/countof-zero-compile.c index b561186166c3..bae9cb6969d3 100644 --- a/gcc/testsuite/gcc.dg/countof-zero-compile.c +++ b/gcc/testsuite/gcc.dg/countof-zero-compile.c @@ -19,7 +19,7 @@ void zro_fix (int i, int (*x)[_Countof (*a)], short (*)[_Generic(x, int (*)[0]: 1)]); void zro_var (int i, - char (*a)[0][i], /* dg-warn "variable" */ + char (*a)[0][i], int (*x)[_Countof (*a)], short (*)[_Generic(x, int (*)[0]: 1)]); void zro_uns (int i, Range-diff against v0: -: ------------ > 1: 567a0c44c1ea testsuite: Remove spurious comments [PR117025] -- 2.49.0