mirror of git://gcc.gnu.org/git/gcc.git
* g++.dg/cpp0x/fallthrough2.C: Use the c++14_down target.
From-SVN: r240621
This commit is contained in:
parent
998e01a6d5
commit
4d258d094a
|
|
@ -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>
|
2016-09-29 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
* g++.dg/cpp0x/fallthrough2.C: Only expect the warning in C++11 and
|
* g++.dg/cpp0x/fallthrough2.C: Only expect the warning in C++11 and
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ f (int i)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
bar (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:
|
case 3:
|
||||||
bar (1);
|
bar (1);
|
||||||
[[gnu::fallthrough, gnu::fallthrough]]; // { dg-warning ".fallthrough. attribute specified multiple times" }
|
[[gnu::fallthrough, gnu::fallthrough]]; // { dg-warning ".fallthrough. attribute specified multiple times" }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue