* g++.dg/cpp0x/fallthrough2.C: Use the c++14_down target.
authorMarek Polacek <polacek@redhat.com>
Thu, 29 Sep 2016 13:27:48 +0000 (13:27 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 29 Sep 2016 13:27:48 +0000 (13:27 +0000)
From-SVN: r240621

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/fallthrough2.C

index f3354bc5c6781f455f725a0e48774115f7622f46..1a92e7899bbf942ac55cfe1444b099bfd3e04b47 100644 (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
index 71c4a4fad8f434c332e503925873021a5bbaa975..075885a821043b14151e0ce0b36d14fbd62e7b1f 100644 (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" }