URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [using1.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
class D2;
class B {
private:
int a; // { dg-error "" } B::a is private
protected:
int b;
friend class D2;
};
class D : public B { // { dg-error "" } within this context
public:
using B::a;
using B::b;
};
class D2 : public B { // { dg-error "" } conflicting access specifications
public:
using B::a;
using B::b;
private:
using B::b;
};