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++.mike/] [s9959.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
class A {
protected:
int aData;
};
class B : public A {
public:
virtual void func1() {
A::aData = 1;
}
};
class C : virtual public B {
public:
virtual void func1(void) {
A::aData = 2;
}
};