Adjust DG directives in libstdc++ Profile Mode test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Aug 2016 13:39:14 +0000 (14:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 17 Aug 2016 13:39:14 +0000 (14:39 +0100)
* testsuite/ext/profile/all.cc: Use effective target instead of
-std=gnu++11. Use dg-additional-options instead of repeating options.

From-SVN: r239536

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/ext/profile/all.cc

index 8753299afca26185783011fbec90810d55afca1e..50018deb9937af9ee2bae470e0c465e7d6dd0038 100644 (file)
@@ -1,5 +1,8 @@
 2016-08-17  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/ext/profile/all.cc: Use effective target instead of
+       -std=gnu++11. Use dg-additional-options instead of repeating options.
+
        * testsuite/20_util/bind/ref_neg.cc: Use effective target instead of
        -std=gnu++11. Add -fno-show-columns to dg-options. Use dg-prune-output
        instead of dg-excess-errors.
index 17be8bc2cc57b89bfb92259bc3e65a6cb7b62bcb..c1eb4407f35c3e157e0471916399cb449176f3e7 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=gnu++11 -O0" }
-// { dg-options "-std=gnu++11 -O0 -D_GLIBCXX_PROFILE_NO_THREADS" { target { ! tls_native } } }
-// { dg-do compile }
+// { dg-options "-O0" }
+// { dg-additional-options "-D_GLIBCXX_PROFILE_NO_THREADS" { target { ! tls_native } } }
+// { dg-do compile { target c++11 } }
 // { dg-require-profile-mode "" }
 
 // -*- C++ -*-