aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanis Johnson <janis187@us.ibm.com>2008-04-04 21:03:43 +0000
committerJanis Johnson <janis@gcc.gnu.org>2008-04-04 21:03:43 +0000
commit6f0623cb395e1d56b71ca5cd8bdb43afc09fa74c (patch)
treed157d2c78d9df7b021f34f9a406a316f4b8ebeed
parent148c1544380b57759726ba9bf77ef05798f9a00a (diff)
downloadgcc-6f0623cb395e1d56b71ca5cd8bdb43afc09fa74c.zip
gcc-6f0623cb395e1d56b71ca5cd8bdb43afc09fa74c.tar.gz
gcc-6f0623cb395e1d56b71ca5cd8bdb43afc09fa74c.tar.bz2
* g++.dg/other/anon5.C: Don't depend on line number for error message.
From-SVN: r133913
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/g++.dg/other/anon5.C4
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d634927..7b2bbe2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2008-04-04 Janis Johnson <janis187@us.ibm.com>
+ * 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 02b3e10..189cfa4 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)