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

34 lines
370 B
C

// prms-id: 3041
class A {
public:
A() { }
virtual void a() = 0;
static int b(A * p) {
p->a();
return 1;
}
};
class B : virtual public A {
public:
B() {
static int installed = b(this);
}
void a() { }
};
class C : virtual public B {
public:
C() {
static int installed = b(this);
}
void a() { }
};
int main()
{
C c;
return 0;
}