OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / repo3.C
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
11 struct A
12 {
13   virtual ~A () {}
14 };
15
16 template <typename T>
17 struct B : virtual public A
18 {
19   virtual void foo () {}
20 };
21
22 template <typename T>
23 struct C : virtual public A
24 {
25 };
26
27 template <typename T>
28 struct D : public B<T>, public C<T>
29 {
30 };
31
32 main ()
33 {
34   D<int> x;
35 }
36
37 // { dg-final { cleanup-repo-files } }