2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / mi.C
blob40b6992d2ead02444513afcbc213bdbfaa93cae8
1 // { dg-do run  }
2 int status;
4 struct A { virtual void foo () { status = 1; } };
5 struct B { };
6 struct C : public A, public B { };
7 struct D { virtual void baz () { } };
8 struct E : public D, public C { void foo () { status = 0; } };
10 int main ()
12   E* ep = new E;
14   ep->foo();
16   return status;