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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [lvalue.C] - Blame information for rev 823

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// Bug: Scoped method calls don't propagate the constness of `this'.
3
// PRMS Id: 4181 (second testcase)
4
 
5
class D;
6
 
7
class Bptr
8
{
9
public:
10
  Bptr& operator=(D*);
11
  const Bptr& operator=(const D*) const;
12
};
13
 
14
class Dptr : public Bptr
15
{
16
public:
17
  const Dptr& operator=(const D* rep) const
18
  {
19
    Bptr::operator=(rep);
20
    return *this;
21
  }
22
};

powered by: WebSVN 2.1.0

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