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/] [template/] [overload11.C] - Diff between revs 301 and 338

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

Rev 301 Rev 338
// PR c++/39413
// PR c++/39413
// We don't need to instantiate Wrapper to check the
// We don't need to instantiate Wrapper to check the
// foo(const Thingy&) overload.
// foo(const Thingy&) overload.
template  struct Incomplete;
template  struct Incomplete;
template  class Wrapper
template  class Wrapper
{
{
  Incomplete i;
  Incomplete i;
};
};
template  struct Thingy
template  struct Thingy
{
{
  Thingy();
  Thingy();
  Thingy(const Wrapper& v);
  Thingy(const Wrapper& v);
  template  void foo(const Thingy&);
  template  void foo(const Thingy&);
  void foo(const Thingy&);
  void foo(const Thingy&);
};
};
int main()
int main()
{
{
    Thingy ap1;
    Thingy ap1;
    Thingy bp1;
    Thingy bp1;
    ap1.foo(bp1);
    ap1.foo(bp1);
}
}
 
 

powered by: WebSVN 2.1.0

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