This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] (committed) fix g++.dg/other/anon5.C
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 04 Apr 2008 14:08:38 -0700
- Subject: [testsuite] (committed) fix g++.dg/other/anon5.C
- Reply-to: janis187 at us dot ibm dot com
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)