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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [lvalue.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
// Bug: Scoped method calls don't propagate the constness of `this'.
// Bug: Scoped method calls don't propagate the constness of `this'.
// PRMS Id: 4181 (second testcase)
// PRMS Id: 4181 (second testcase)
class D;
class D;
class Bptr
class Bptr
{
{
public:
public:
  Bptr& operator=(D*);
  Bptr& operator=(D*);
  const Bptr& operator=(const D*) const;
  const Bptr& operator=(const D*) const;
};
};
class Dptr : public Bptr
class Dptr : public Bptr
{
{
public:
public:
  const Dptr& operator=(const D* rep) const
  const Dptr& operator=(const D* rep) const
  {
  {
    Bptr::operator=(rep);
    Bptr::operator=(rep);
    return *this;
    return *this;
  }
  }
};
};
 
 

powered by: WebSVN 2.1.0

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