From: Janis Johnson Date: Fri, 4 Apr 2008 21:03:43 +0000 (+0000) Subject: * g++.dg/other/anon5.C: Don't depend on line number for error message. X-Git-Tag: releases/gcc-4.4.0~5659 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6f0623cb395e1d56b71ca5cd8bdb43afc09fa74c;p=thirdparty%2Fgcc.git * g++.dg/other/anon5.C: Don't depend on line number for error message. From-SVN: r133913 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d634927875a0..7b2bbe20e41a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2008-04-04 Janis Johnson + * g++.dg/other/anon5.C: Don't depend on line number for error message. + * gcc.dg/torture/builtin-modf-1.c: Use special options for powerpc*-*-linux*. diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index 02b3e10fe559..189cfa4624b9 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -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)