]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c: adjust [[maybe_unused]] testcase
authorJason Merrill <jason@redhat.com>
Sun, 13 Jun 2021 15:34:38 +0000 (11:34 -0400)
committerJason Merrill <jason@redhat.com>
Sun, 13 Jun 2021 18:19:06 +0000 (14:19 -0400)
Another testcase update needed for my r12-1405 commit.

gcc/testsuite/ChangeLog:

* gcc.dg/c2x-attr-maybe_unused-1.c: Expect no warnings.

gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c

index 221ebdd19b86b89912a50bde255f950674248ea6..477f30dbd44d5968cb1ba180bac44af1bb9ff7b2 100644 (file)
@@ -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;