libstdc++: Remove duplicate dg-do directive
authorJonathan Wakely <jwakely@redhat.com>
Fri, 31 Jul 2020 16:51:00 +0000 (17:51 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 31 Jul 2020 16:51:00 +0000 (17:51 +0100)
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.

libstdc++-v3/testsuite/20_util/time_point_cast/rounding.cc

index 7cf4931645e72b0cd06c183debe348d27add2475..9918b83bac1f6d6b7d9dc24d51df06f7c015da6f 100644 (file)
 // 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>