c: adjust [[maybe_unused]] testcase
Another testcase update needed for my r12-1405 commit. gcc/testsuite/ChangeLog: * gcc.dg/c2x-attr-maybe_unused-1.c: Expect no warnings.
This commit is contained in:
parent
3f207ab314
commit
291cd193f8
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ g ([[maybe_unused]] int x, int y)
|
|||
|
||||
struct [[maybe_unused]] s { double d; };
|
||||
|
||||
struct s2 { [[__maybe_unused__]] int a; int b [[maybe_unused]]; } x; /* { dg-warning "attribute ignored" } */
|
||||
struct s2 { [[__maybe_unused__]] int a; int b [[maybe_unused]]; } x;
|
||||
|
||||
enum e { E1 [[maybe_unused]] };
|
||||
|
||||
|
@ -28,4 +28,4 @@ union [[maybe_unused]] u { int x; };
|
|||
|
||||
enum [[maybe_unused]] eu { E2 };
|
||||
|
||||
union u2 { [[maybe_unused]] int a; int b [[maybe_unused]]; } y; /* { dg-warning "attribute ignored" } */
|
||||
union u2 { [[maybe_unused]] int a; int b [[maybe_unused]]; } y;
|
||||
|
|
Loading…
Add table
Reference in a new issue