On Thu, Sep 29, 2016 at 03:20:26PM +0200, Jakub Jelinek wrote:
> Shouldn't that be { target c++14_down } instead?

Didn't know about that.  Thus:

2016-09-29  Marek Polacek  <pola...@redhat.com>

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

diff --git gcc/testsuite/g++.dg/cpp0x/fallthrough2.C 
gcc/testsuite/g++.dg/cpp0x/fallthrough2.C
index 71c4a4f..075885a 100644
--- gcc/testsuite/g++.dg/cpp0x/fallthrough2.C
+++ 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" }

        Marek

Reply via email to