diff mbox

[1/2] Adjust DG directives in libstdc++ XFAIL test

Message ID 20160817135331.GA25259@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely Aug. 17, 2016, 1:53 p.m. UTC
Some tweaks to dejagnu directives.

	* 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.

Tested powerpc64le-linux, committed to trunk.
commit 964ab6e50270e231f92c2e892906e7f2aa4ef5b5
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Aug 17 12:41:24 2016 +0100

    Adjust DG directives in libstdc++ XFAIL test
    
    	* 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.
diff mbox

Patch

diff --git a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
index f1a1c78..ff2dffb 100644
--- a/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
+++ b/libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
@@ -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()
 {