This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
More g++ testsuite tweak
- To: gcc-patches at gcc dot gnu dot org
- Subject: More g++ testsuite tweak
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 26 Apr 2001 10:21:42 -0700
The HPUX linker doesn't give line numbers on link failures (it's similar to
the IRIX linker).
A couple tests depend on that information and thus need to be xfailed.
Installed on the branch and the trunk.
* g++.old-deja/g++.ext/instantiate2.C: XFAIL for HPUX too since
its linker doesn't give line numbers either.
* g++.old-deja/g++.ext/instantiate3.C: Similarly.
Index: instantiate2.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.ext/instantiate2.C,v
retrieving revision 1.3.4.1
diff -c -3 -p -r1.3.4.1 instantiate2.C
*** instantiate2.C 2001/04/03 08:41:38 1.3.4.1
--- instantiate2.C 2001/04/26 17:09:42
*************** static template struct A<int>;
*** 16,23 ****
void test_int() { A<int>::t = 42; } // gets bogus error
! void test_char() { A<char>::t = 42; } // ERROR - not instantiated XFAIL *-*-irix*
// Irix's default linker does not produce line numbers so XFAIL it.
int main ()
{
--- 16,24 ----
void test_int() { A<int>::t = 42; } // gets bogus error
! void test_char() { A<char>::t = 42; } // ERROR - not instantiated XFAIL *-*-irix* *-*-hpux*
// Irix's default linker does not produce line numbers so XFAIL it.
+ // Similarly for HP's linker
int main ()
{
Index: instantiate3.C
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/g++.old-deja/g++.ext/instantiate3.C,v
retrieving revision 1.3
diff -c -3 -p -r1.3 instantiate3.C
*** instantiate3.C 2001/01/15 04:30:35 1.3
--- instantiate3.C 2001/04/26 17:09:42
*************** template <class T> struct A {
*** 10,18 ****
inline template struct A<int>;
A<int> a; // gets bogus error
! A<char> b; // ERROR - not instantiated XFAIL mips*-*-*
// Irix's default linker does not
// produce line numbers so XFAIL it.
int main ()
{
--- 10,19 ----
inline template struct A<int>;
A<int> a; // gets bogus error
! A<char> b; // ERROR - not instantiated XFAIL mips*-*-* *-*-hpux*
// Irix's default linker does not
// produce line numbers so XFAIL it.
+ // Similarly for HPUX.
int main ()
{