public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1412] c: adjust [[maybe_unused]] testcase
@ 2021-06-13 18:19 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-06-13 18:19 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:291cd193f8ddb4e136ebc8f1178d35fa575b3c5d
commit r12-1412-g291cd193f8ddb4e136ebc8f1178d35fa575b3c5d
Author: Jason Merrill <jason@redhat.com>
Date: Sun Jun 13 11:34:38 2021 -0400
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.
Diff:
---
gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c b/gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c
index 221ebdd19b8..477f30dbd44 100644
--- a/gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c
+++ b/gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-13 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 18:19 [gcc r12-1412] c: adjust [[maybe_unused]] testcase Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).