aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/vtable1.C
blob: 32a546a2827a65c895a3e3e547164600cb34bb0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Build don't link:
// Special g++ Options: -w
// GROUPS passed vtable
// vtable file
// From: mrs@cygnus.com (Mike Stump)
// Date:     Wed, 20 Apr 1994 17:46:11 -0700
// Subject:  vtable name generation is wrong
// Message-ID: <199404210046.RAA25652@rtl.cygnus.com>

// prepare_fresh_vtable doesn't build the names of
// vtables very well.

struct B {
  virtual void vf() { }
};

struct Main {
  virtual void vf() { }
};

struct Other : public Main, public B {
  virtual void vf() { }
};

struct D : public Main, public B, public Other {
  virtual void vf() { }
} a;