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++.other/] [access5.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do assemble }
class A
{
protected:
int i;
};
class B : private A
{
protected:
A::i;
};
struct C : public B {
friend int f(C *p);
};
int f(C *p) {
return p->i;
}