This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 -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_" } }


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]