2 // Copyright (C) 1999 Free Software Foundation
4 // by Alexandre Oliva <oliva@dcc.unicamp.br>
5 // based on bug report by Fredrik Öhrström <d92-foh@nada.kth.se>
12 virtual int get_a() const = 0;
15 struct base: virtual vbase {
17 base(int aa) : a(aa) {}
18 int get_a() const { return a; }
22 mid(int bb) : base(bb) {
23 // when mid is not in charge of vbase initialization,
24 // a derived-aware vtable is needed for vbase
25 if (((vbase*)this)->get_a() != bb)
30 struct derived: virtual mid {
31 derived(int cc) : mid(cc) {}