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 gcc.dg/dll-4.c scan-assembler failure


This patch fixes

FAIL: gcc.dg/dll-4.c scan-assembler (foo2:.*.comm[ \t_]*foo1)

for i686-mingw32.  The test was checking for foo1 and foo2 appearing
in the output, and was expecting them to appear in a particular order,
so failed when foo1 appeared before foo2 - but I can see no reason for
the order they appear in to be fixed, so this patch splits the check
into separate tests for foo1 and foo2.  OK to commit?

2009-07-17  Joseph Myers  <joseph@codesourcery.com>

	* gcc.dg/dll-4.c: Allow foo1 and foo2 in either order in
	scan-assembler.

Index: gcc/testsuite/gcc.dg/dll-4.c
===================================================================
--- gcc/testsuite/gcc.dg/dll-4.c	(revision 149748)
+++ gcc/testsuite/gcc.dg/dll-4.c	(working copy)
@@ -11,5 +11,6 @@
 int f () { return foo1 + foo2; }
 
 /* FIXME: We should scan the output of nm for this case.  */
-/* { dg-final { scan-assembler "(foo2:.*\.comm\[ \t_\]*foo1)" } } */
+/* { dg-final { scan-assembler "(foo2:)" } } */
+/* { dg-final { scan-assembler "(\.comm\[ \t_\]*foo1)" } } */
 /* { dg-final { scan-assembler-not "(__imp_|_imp__)" } } */

-- 
Joseph S. Myers
joseph@codesourcery.com


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