diff options
author | Jason Merrill <jason@redhat.com> | 2021-06-13 11:34:38 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-06-13 14:19:06 -0400 |
commit | 291cd193f8ddb4e136ebc8f1178d35fa575b3c5d (patch) | |
tree | f261e4f0a39529149d23164beee85bb9290025a2 /gcc | |
parent | 3f207ab314c071c6060c7c9a429fcf29fd87b594 (diff) | |
download | gcc-291cd193f8ddb4e136ebc8f1178d35fa575b3c5d.zip gcc-291cd193f8ddb4e136ebc8f1178d35fa575b3c5d.tar.gz gcc-291cd193f8ddb4e136ebc8f1178d35fa575b3c5d.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/c2x-attr-maybe_unused-1.c | 4 |
1 files 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 221ebdd..477f30d 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; |