8sa1-gcc/gcc/testsuite/g++.old-deja/g++.law/visibility6.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

24 lines
487 B
C

// Build don't link:
// 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() {} // ERROR - private base class
};
class Derived : private Top {
public:
Derived() {}
};
class Unrelated {
Derived derived;
public:
void oops() { derived.val(); }// ERROR - .*
};