// { 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 func
// { dg-do assemble }
// prms-id: 807
extern "C" int printf(const char*, ...);
class B;
class AX
{
protected:
int x;
public:
operator B();
};
class B
{
private:
int x;
public:
B
// { dg-do assemble }
// Simple testcase for access control.
class A {
public:
void f ();
};
class B: protected A { };
class C: protected B {
void g() { f (); }
};