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++.law/] [visibility9.C] - Rev 165
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed visibility
// visibility file
// rom: roland@jts.com (Roland Knight )
// Date: Sat, 8 May 1993 17:27:35 -0400
// Subject: gcc 2.3.3 protected member access bug
// Message-ID: <9305082127.AA19577@icepick.jts.com>
class A {
protected:
int a; // { dg-error "" } protected
};
class B : public A {
public:
void f1(A* pa);
};
void B::f1(A* pa) {
pa->a = 1; // illegal but allowed by gcc// { dg-error "" } .*
}
Go to most recent revision | Compare with Previous | Blame | View Log