aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-11-07 13:28:21 -0500
committerMarek Polacek <polacek@redhat.com>2020-11-07 13:28:43 -0500
commitbd3cefe45019251d1471857197f4cf6a76fd69e9 (patch)
tree91767fce27c369a54b9286d3e3180356b357624e /gcc
parent497c9f8d4dd0252f2e0dd5bf0f1cb29e187525ee (diff)
downloadgcc-bd3cefe45019251d1471857197f4cf6a76fd69e9.zip
gcc-bd3cefe45019251d1471857197f4cf6a76fd69e9.tar.gz
gcc-bd3cefe45019251d1471857197f4cf6a76fd69e9.tar.bz2
testsuite: Fix Wimplicit-fallthrough-20.c.
The r11-4813 patch removed "ignored" from the dg-warnings in this test, causing this test to fail when compiled as C++. gcc/testsuite/ChangeLog: * c-c++-common/Wimplicit-fallthrough-20.c: Adjust dg-warning.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c
index 810c331..bc0cd0f 100644
--- a/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c
+++ b/gcc/testsuite/c-c++-common/Wimplicit-fallthrough-20.c
@@ -27,13 +27,13 @@ g (int i)
switch (i)
{
case -1:
- __attribute__((used)); /* { dg-warning "empty declaration" } */
+ __attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
default:
- __attribute__((used)); /* { dg-warning "empty declaration" } */
+ __attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
case 1:
return 6;
case 2 ... 4:
- __attribute__((used)); /* { dg-warning "empty declaration" } */
+ __attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
case 5:
return 7;
}