* g++.dg/cpp0x/fallthrough2.C: Use the c++14_down target.

From-SVN: r240621
This commit is contained in:
Marek Polacek 2016-09-29 13:27:48 +00:00 committed by Marek Polacek
parent 998e01a6d5
commit 4d258d094a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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" }