* g++.dg/other/anon5.C: Don't depend on line number for error message.
authorJanis Johnson <janis187@us.ibm.com>
Fri, 4 Apr 2008 21:03:43 +0000 (21:03 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Fri, 4 Apr 2008 21:03:43 +0000 (21:03 +0000)
From-SVN: r133913

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/anon5.C

index d634927875a0fac235108415f8f8e9c8dd75c2a5..7b2bbe20e41a203ea9a396caeb8b0d5c5c607e3f 100644 (file)
@@ -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*.
 
index 02b3e10fe5594c7581475e46b033a9ab8f062fe2..189cfa4624b9cacbd4b9baaa947dfb8afa8cafd5 100644 (file)
@@ -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)