]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/c2x-parm-omit-2.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c2x-parm-omit-2.c
CommitLineData
a4223abb
JM
1/* Test omitted parameter names in C2x. Warning test: there should be
2 no warning for an unnamed parameter being unused. */
3/* { dg-do compile } */
4/* { dg-options "-std=c2x -pedantic-errors -Wall -Wextra" } */
5
6int
7f (int a, int, int c, int d) /* { dg-warning "unused parameter 'd'" } */
8{
9 return a + c;
10}