| 1 |
// { dg-do assemble } |
| 2 |
|
| 3 |
// Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 |
// Contributed by Nathan Sidwell 10 Jan 2001 <[email protected]> |
| 5 |
// Origin [email protected] |
| 6 |
|
| 7 |
// Bug 933. Secondary vtables weren't correctly located for non-primary |
| 8 |
// virtual bases. Causing us to ICE. |
| 9 |
|
| 10 |
class d0_Object |
| 11 |
{ |
| 12 |
public: |
| 13 |
virtual ~d0_Object (); |
| 14 |
}; |
| 15 |
|
| 16 |
|
| 17 |
class M10 : virtual public d0_Object {}; |
| 18 |
class M4 : virtual public M10 {}; |
| 19 |
|
| 20 |
class M9 |
| 21 |
: public M4, virtual public M10 |
| 22 |
{ |
| 23 |
public: |
| 24 |
M9 (); |
| 25 |
}; |
| 26 |
|
| 27 |
M9::M9 () {} |