diff mbox

[testsuite] Fix dg-require-weak syntax in g++.dg/abi/mangle40.C

Message ID yddipx59n2b.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Jan. 31, 2011, 2:15 p.m. UTC
While testing a different patch, I noticed that there's a testcase that
doesn't get the dg-require-* syntax right: those keyword require an
argument, and is silently ignored if that is missing.

There's a single testcase that is affected by this problem.

Fixed by adding an empty argument, tested by running the appropriate
runtest invocation with -v -v -v and checking that dg-require-weak was
ignored before and is now honored.

Installed as obvious.

	Rainer


2011-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* g++.dg/abi/mangle40.C: Pass "" to dg-require-weak.
diff mbox

Patch

diff -r 3876a9487b26 gcc/testsuite/g++.dg/abi/mangle40.C
--- a/gcc/testsuite/g++.dg/abi/mangle40.C	Fri Jan 28 15:07:37 2011 +0000
+++ b/gcc/testsuite/g++.dg/abi/mangle40.C	Sun Jan 30 12:29:44 2011 +0100
@@ -1,6 +1,6 @@ 
 // PR c++/12909
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
-// { dg-require-weak }
+// { dg-require-weak "" }
 // { dg-require-alias "" }
 // { dg-options "-mavx -Wabi -fabi-version=2" }
 // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z1fIDv4_fEvT_" } }