| 1 |
// { dg-do assemble } |
| 2 |
// { dg-options "-w" } |
| 3 |
// GROUPS passed vtable |
| 4 |
// vtable file |
| 5 |
// From: [email protected] (Mike Stump) |
| 6 |
// Date: Wed, 20 Apr 1994 17:46:11 -0700 |
| 7 |
// Subject: vtable name generation is wrong |
| 8 |
// Message-ID: <[email protected]> |
| 9 |
|
| 10 |
// prepare_fresh_vtable doesn't build the names of |
| 11 |
// vtables very well. |
| 12 |
|
| 13 |
struct B { |
| 14 |
virtual void vf() { } |
| 15 |
}; |
| 16 |
|
| 17 |
struct Main { |
| 18 |
virtual void vf() { } |
| 19 |
}; |
| 20 |
|
| 21 |
struct Other : public Main, public B { |
| 22 |
virtual void vf() { } |
| 23 |
}; |
| 24 |
|
| 25 |
struct D : public Main, public B, public Other { |
| 26 |
virtual void vf() { } |
| 27 |
} a; |