aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2016-09-29 13:15:21 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2016-09-29 13:15:21 +0000
commita9087411ad024045963288b86f2a11840a30b489 (patch)
tree48333184f240f52caed4d301e3185612d9efaeaf /gcc
parentfa0a064ae8968d49a838d6b4272ea79c547a721b (diff)
downloadgcc-a9087411ad024045963288b86f2a11840a30b489.zip
gcc-a9087411ad024045963288b86f2a11840a30b489.tar.gz
gcc-a9087411ad024045963288b86f2a11840a30b489.tar.bz2
fallthrough2.C: Only expect the warning in C++11 and C++14.
* g++.dg/cpp0x/fallthrough2.C: Only expect the warning in C++11 and C++14. From-SVN: r240619
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/fallthrough2.C2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3841aaf..f3354bc 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-29 Marek Polacek <polacek@redhat.com>
+
+ * g++.dg/cpp0x/fallthrough2.C: Only expect the warning in C++11 and
+ C++14.
+
2016-09-29 Martin Liska <mliska@suse.cz>
* objc/execute/construct1.m: New test.
diff --git a/gcc/testsuite/g++.dg/cpp0x/fallthrough2.C b/gcc/testsuite/g++.dg/cpp0x/fallthrough2.C
index b6964e1..71c4a4f 100644
--- a/gcc/testsuite/g++.dg/cpp0x/fallthrough2.C
+++ b/gcc/testsuite/g++.dg/cpp0x/fallthrough2.C
@@ -11,7 +11,7 @@ f (int i)
{
case 1:
bar (1);
- [[fallthrough]]; // { dg-warning ".fallthrough. is a C\\+\\+17 feature" }
+ [[fallthrough]]; // { dg-warning ".fallthrough. is a C\\+\\+17 feature" "" { target { ! c++1z } } }
case 3:
bar (1);
[[gnu::fallthrough, gnu::fallthrough]]; // { dg-warning ".fallthrough. attribute specified multiple times" }