1// { dg-do link }
2// { dg-options "-frepo" }
3// { dg-require-host-local "" }
4// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
5
6// Test that we properly generate the vtable and such for C.
7// Contributed by scott snyder <snyder@fnal.gov>
8
9// Build then link:
10
11struct A
12{
13  virtual ~A () {}
14};
15
16template <typename T>
17struct B : virtual public A
18{
19  virtual void foo () {}
20};
21
22template <typename T>
23struct C : virtual public A
24{
25};
26
27template <typename T>
28struct D : public B<T>, public C<T>
29{
30};
31
32main ()
33{
34  D<int> x;
35}
36
37// { dg-final { cleanup-repo-files } }
38