]>
Commit | Line | Data |
---|---|---|
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 | ||
6 | int | |
7 | f (int a, int, int c, int d) /* { dg-warning "unused parameter 'd'" } */ | |
8 | { | |
9 | return a + c; | |
10 | } |