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++.robertl/] [eb71.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
typedef __SIZE_TYPE__ size_t;
class A {
public:
void operator delete(void*, size_t);
void* operator new(size_t);
};
class B : public A {
friend class D;
B();
unsigned counter;
};
class D {
int ins( B*&);
};
int
D::ins( B*& tempN)
{
unsigned i;
if (i == 10) {
}
else {
}
tempN = new B();
tempN->counter = 20;
return 0;
}