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] (committed) fix g++.dg/other/anon5.C


On some targets a undefined external is reported with a source line
number, but on others it isn't.  This patch changes a test to not expect
a specific line number for such an error.

Tested on powerpc64-linux, checked in on trunk.

2008-04-04  Janis Johnson  <janis187@us.ibm.com>

	* g++.dg/other/anon5.C: Don't depend on line number for error message.

Index: gcc/testsuite/g++.dg/other/anon5.C
===================================================================
--- gcc/testsuite/g++.dg/other/anon5.C	(revision 133906)
+++ gcc/testsuite/g++.dg/other/anon5.C	(working copy)
@@ -11,7 +11,9 @@ namespace {
 
 const bool &f()
 {
-  return c::t;			// { dg-error "undefined" }
+  return c::t;	// { dg-error "undefined" "undefined" { target *-*-* } 0 }
+		// Some targets report the error for the previous line, others
+		// don't give line number inforamtion for it, so use line 0.
 }
 
 int main(void)



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