Debian Codegraph @

gcc/testsuite/gcc.dg/c23-parm-omit-2.c

raw
1 /* Test omitted parameter names in C23. Warning test: there should be
2 no warning for an unnamed parameter being unused. */
3 /* { dg-do compile } */
4 /* { dg-options "-std=c23 -pedantic-errors -Wall -Wextra" } */
5
6 int
7 f (int a, int, int c, int d) /* { dg-warning "unused parameter 'd'" } */
8 {
9 return a + c;
10 }