2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / vtable1.C
bloba4c1ce9946ae1fef6eace00a713af33c017247d2
1 // { dg-do assemble  }
2 // { dg-options "-w" }
3 // GROUPS passed vtable
4 // vtable file
5 // From: mrs@cygnus.com (Mike Stump)
6 // Date:     Wed, 20 Apr 1994 17:46:11 -0700
7 // Subject:  vtable name generation is wrong
8 // Message-ID: <199404210046.RAA25652@rtl.cygnus.com>
10 // prepare_fresh_vtable doesn't build the names of
11 // vtables very well.
13 struct B {
14   virtual void vf() { }
17 struct Main {
18   virtual void vf() { }
21 struct Other : public Main, public B {
22   virtual void vf() { }
25 struct D : public Main, public B, public Other {
26   virtual void vf() { }
27 } a;