URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [operators6.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed operators
// opr-as file
// From: Klaus Ahrens <ahrens@informatik.hu-berlin.de>
// Date: Fri, 26 Mar 93 12:50:37 mez
// Subject: no default assignment
// Message-ID: <199303261149.TA23114@mail.Germany.EU.net>
class A {
public:
A(int){}
A& operator=(const A&){return *this;}
};
class B: public A {
public:
B(int i): A(i) {}
};
int main()
{
B b=1;
b=1;
}