* ru.po: Update.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / lvalue.C
blob643641eec700112810b1f1cab8f72d8104012e75
1 // { dg-do assemble  }
2 // Bug: Scoped method calls don't propagate the constness of `this'.
3 // PRMS Id: 4181 (second testcase)
5 class D;
7 class Bptr
9 public:
10   Bptr& operator=(D*);                          
11   const Bptr& operator=(const D*) const;        
14 class Dptr : public Bptr
16 public:
17   const Dptr& operator=(const D* rep) const 
18   {
19     Bptr::operator=(rep);
20     return *this;
21   }