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

19 lines
431 B
C

// Build don't link:
// GROUPS passed visibility
// visibility file
// From: jamshid@ses.com (Jamshid Afshar)
// Date: Sun, 12 Dec 93 03:09:15 CST
// Subject: Missed access declaration error
// Message-ID: <9312120909.AA22135@ses.com>
class X {
public:
void f();
};
class Y : private X {
public:
void f(int);// ERROR - because.*
X::f; // g++ 2.5.5 doesn't flag this misuse
};// ERROR - cannot adjust.*