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