Adjust DG directives in libstdc++ XFAIL test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Aug 2016 13:39:10 +0000 (14:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 17 Aug 2016 13:39:10 +0000 (14:39 +0100)
* 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.

From-SVN: r239535

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/bind/ref_neg.cc

index be50c0d703f0084ab4e1f492f67ed523231bbee0..8753299afca26185783011fbec90810d55afca1e 100644 (file)
@@ -1,5 +1,9 @@
 2016-08-17  Jonathan Wakely  <jwakely@redhat.com>
 
+       * 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.
+
        * testsuite/26_numerics/headers/cmath/types_std_c++0x_neg.cc: Disable
        test for C++17.
        * testsuite/experimental/chrono/value.cc: Avoid ambiguities in C++17.
index f1a1c7897f8c8fa6f9d3d892a25a1042d8639ff7..ff2dffbc4f64639337dce68bec0d2f9cde69d5cc 100644 (file)
@@ -17,8 +17,8 @@
 
 // 20.8.9 Function template bind
 
-// { dg-do compile }
-// { dg-options "-std=gnu++11" }
+// { dg-options "-fno-show-column" }
+// { dg-do compile { target c++11 } }
 
 #include <functional>
 
@@ -48,7 +48,8 @@ void test02()
   std::bind(&Inc::f, Inc(), std::ref(dummy))(); // { dg-error  "no match" }
 }
 
-// { dg-excess-errors "reasons for deduction/substitution failures" }
+// Ignore the reasons for deduction/substitution failure in the headers.
+// { dg-prune-output "/include/(functional|bits/invoke.h):" }
 
 int main()
 {