[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-patches
Subject:    [committed] libstdc++: Remove duplicate dg-do directive
From:       Jonathan Wakely via Gcc-patches <gcc-patches () gcc ! gnu ! org>
Date:       2020-07-31 16:51:36
Message-ID: 20200731165136.GA1287104 () redhat ! com
[Download RAW message or body]

Also add an effective target to clarify it should only run for C++17 and
later.

libstdc++-v3/ChangeLog:

	* testsuite/20_util/time_point_cast/rounding.cc: Remove
	duplicate dg-do directive and add c++17 effective target.

Tested x86_64-linux, committed to trunk.



["patch.txt" (text/plain)]

commit 351f60794c116d25a78da5220f3da74b4268cb8d
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Fri Jul 31 17:51:00 2020

    libstdc++: Remove duplicate dg-do directive
    
    Also add an effective target to clarify it should only run for C++17 and
    later.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/20_util/time_point_cast/rounding.cc: Remove
            duplicate dg-do directive and add c++17 effective target.

diff --git a/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc \
b/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc index \
                7cf4931645e..9918b83bac1 100644
--- a/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc
+++ b/libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc
@@ -15,10 +15,8 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-// { dg-do run { target c++11 } }
-
 // { dg-options "-std=gnu++17" }
-// { dg-do compile }
+// { dg-do compile { target c++17 } }
 
 #include <chrono>
 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic