Rebase.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / repo3.C
blob53baf29f3491e2895e5aaa64753865b6c94d4dfe
1 // { dg-do link }
2 // { dg-options "-frepo" }
3 // { dg-require-host-local "" }
4 // { dg-skip-if "dkms are not final links" { vxworks_kernel } }
6 // Test that we properly generate the vtable and such for C.
7 // Contributed by scott snyder <snyder@fnal.gov>
9 // Build then link:
11 struct A
13   virtual ~A () {}
16 template <typename T>
17 struct B : virtual public A
19   virtual void foo () {}
22 template <typename T>
23 struct C : virtual public A
27 template <typename T>
28 struct D : public B<T>, public C<T>
32 main ()
34   D<int> x;
37 // { dg-final { cleanup-repo-files } }