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/] [visibility6.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// GROUPS passed visibility
// visibility file
// From: Rob Hasker <hasker@sparc0a.cs.uiuc.edu>
// Date: Sat, 3 Apr 1993 13:19:05 -0600
// Subject: no privacy
// Message-ID: <199304031919.AA20554@sparc17.cs.uiuc.edu
class Top {
public:
Top() {}
void val() {} // { dg-error "" } private base class
};
class Derived : private Top {
public:
Derived() {}
};
class Unrelated {
Derived derived;
public:
void oops() { derived.val(); }// { dg-error "" } .*
};