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]

[PATCH] PR testsuite/38241 - prune output for Darwin linker


The attached patch prunes the output from the
g++.old-deja/g++.pt/const2.C so that the results
from *-*-darwin*...

Undefined symbols:
  "A<int>::i", referenced from:
      _p in ccXjnF0c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
compiler exited with status 1
output is:
Undefined symbols:
  "A<int>::i", referenced from:
      _p in ccXjnF0c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

aren't treated as excessive error failures. Tested on
i686-apple-darwin10. Okay for gcc trunk?
                        Jack


2008-11-23  Jack Howarth <howarth@bromo.med.uc.edu>

	PR testsuite/38241
	* ++.old-deja/g++.pt/const2.C: Prune output for Darwin.


Index: gcc/testsuite/g++.old-deja/g++.pt/const2.C
===================================================================
--- gcc/testsuite/g++.old-deja/g++.pt/const2.C	(revision 142138)
+++ gcc/testsuite/g++.old-deja/g++.pt/const2.C	(working copy)
@@ -1,5 +1,6 @@
 // { dg-do link }
 // This test should get a linker error for the reference to A<int>::i.
+// { dg-prune-output "ld: symbol" }
 // { dg-message "i" "" { target *-*-* } 0 }
 
 template <class T> struct B { static const int i = 3; };
 


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