8sa1-gcc/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

26 lines
264 B
C

// Build don't link:
class A {
char str[10];
public:
char* m1 () { return str;};
};
class C : public A {
public:
};
class B : public A {
public:
char* m1 () { C::m1(); return ""; } // ERROR -
};
int main () {
A a;
B b;
C c;
a.m1();
c.m1();
b.m1();
}