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

19 lines
344 B
C

// Build don't link:
// GROUPS passed old-abort
struct B
{
void f(char); // ERROR - Cannot reduce access
void g(char);
};
class C
{
int g();
};// ERROR - warning
class D2 : public B
{
using B::f; // ok: B is a base of D
using C::g; // error: C isn't a base of D2
}; // ERROR - type C is not a base type for type D2