OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [other/] [anon5.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/34094
// PR c++/34094
// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
// { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } }
// { dg-options "-g" }
// { dg-options "-g" }
namespace {
namespace {
  struct c
  struct c
  {
  {
    static const bool t = 0;
    static const bool t = 0;
  };
  };
}
}
const bool &f()
const bool &f()
{
{
  return c::t;  // { dg-message "undefined" "undefined" { target *-*-* } 0 }
  return c::t;  // { dg-message "undefined" "undefined" { target *-*-* } 0 }
                // Some targets report the error for the previous line, others
                // Some targets report the error for the previous line, others
                // don't give line number inforamtion for it, so use line 0.
                // don't give line number inforamtion for it, so use line 0.
}
}
int main(void)
int main(void)
{
{
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.