diff options
author | Marek Polacek <polacek@redhat.com> | 2016-09-29 13:27:48 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2016-09-29 13:27:48 +0000 |
commit | 4d258d094a2a0f1de22b974e7b7db2ac4894b84b (patch) | |
tree | e76b6c11cddde3a57854542303a35ae748d2cf0a | |
parent | 998e01a6d52296036e04294375f489e64cba6fd1 (diff) | |
download | gcc-4d258d094a2a0f1de22b974e7b7db2ac4894b84b.zip gcc-4d258d094a2a0f1de22b974e7b7db2ac4894b84b.tar.gz gcc-4d258d094a2a0f1de22b974e7b7db2ac4894b84b.tar.bz2 |
* g++.dg/cpp0x/fallthrough2.C: Use the c++14_down target.
From-SVN: r240621
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/fallthrough2.C | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f3354bc..1a92e78 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2016-09-29 Marek Polacek <polacek@redhat.com> + * g++.dg/cpp0x/fallthrough2.C: Use the c++14_down target. + +2016-09-29 Marek Polacek <polacek@redhat.com> + * g++.dg/cpp0x/fallthrough2.C: Only expect the warning in C++11 and C++14. diff --git a/gcc/testsuite/g++.dg/cpp0x/fallthrough2.C b/gcc/testsuite/g++.dg/cpp0x/fallthrough2.C index 71c4a4f..075885a 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" "" { target { ! c++1z } } } + [[fallthrough]]; // { dg-warning ".fallthrough. is a C\\+\\+17 feature" "" { target { c++14_down } } } case 3: bar (1); [[gnu::fallthrough, gnu::fallthrough]]; // { dg-warning ".fallthrough. attribute specified multiple times" } |