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]

clean up some C++ tests for Darwin


This patch just fixes two tests; in the first case, the thing the test
was testing seemed to be working but the assembly was using a space
instead of the expeted tab; in the second, the test will never work on
Darwin and it'd need custom TCL code to make it go.

Tested with 'make -C gcc check-g++' on i386-darwin7.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/gcc-testsuite-cpcleanup.patch=============
2007-06-12  Geoff Keating  <geoffk@apple.com>

	* g++.dg/warn/weak1.C: Suppress on Darwin.
	* g++.dg/other/unused1.C: Accept tabs or spaces in assembly.

Index: g++.dg/other/unused1.C
===================================================================
--- g++.dg/other/unused1.C	(revision 125627)
+++ g++.dg/other/unused1.C	(working copy)
@@ -44,5 +44,5 @@
 /* { dg-final { scan-assembler "foo" } } */
 /* { dg-final { scan-assembler "boo" } } */
 /* { dg-final { scan-assembler "cue" } } */
-/* { dg-final { scan-assembler "(string|ascii?)z?\t\"class2(\"|\\\\000)" } } */
-/* { dg-final { scan-assembler "(string|ascii?)z?\t\"printer(\"|\\\\000)" } } */
+/* { dg-final { scan-assembler "(string|ascii?)z?\[\t \]\"class2(\"|\\\\0)" } } */
+/* { dg-final { scan-assembler "(string|ascii?)z?\[\t \]\"printer(\"|\\\\0)" } } */
Index: g++.dg/warn/weak1.C
===================================================================
--- g++.dg/warn/weak1.C	(revision 125627)
+++ g++.dg/warn/weak1.C	(working copy)
@@ -1,7 +1,9 @@
-// The PA HP-UX dynamic loader doesn't support unsatisfied weak symbols.
 // { dg-do run }
 // { dg-require-weak "" }
+// The PA HP-UX dynamic loader doesn't support unsatisfied weak symbols.
 // { dg-skip-if "No unsat" { hppa*-*-hpux* } { "*" } { "" } }
+// The darwin loader does, but they do need to exist at link time.
+// { dg-skip-if "No link unsat" { *-*-darwin* } { "*" } { "" } }
 
 extern void foo (void) __attribute__ ((weak));
 
============================================================


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