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

27 lines
491 B
C

// Build don't link:
// GROUPS passed visibility
// visibility file
// From: gfm@mencon.mencon.oz.au (Graham Menhennitt)
// Date: Wed, 17 Nov 93 21:30:32 EST
// Subject: gcc 2.5.3 - can't privately inherit and contain same class
// Message-ID: <9311171030.AA00604@mencon>
#include <iostream.h>
class A {
public:
A(void);
};
class B : private A {
public:
B(void) : A() {}
};
class C : public B {
public:
C(void) : B(), a() {}
private:
A a;
};