Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / repo3.C
blob7995030fe035929b7ebb255918902bef894e4bb7
1 // { dg-do link }
2 // { dg-options "-frepo" }
3 // { dg-require-host-local "" }
4 // Test that we properly generate the vtable and such for C.
5 // Contributed by scott snyder <snyder@fnal.gov>
7 // Build then link:
9 struct A
11   virtual ~A () {}
14 template <typename T>
15 struct B : virtual public A
17   virtual void foo () {}
20 template <typename T>
21 struct C : virtual public A
25 template <typename T>
26 struct D : public B<T>, public C<T>
30 main ()
32   D<int> x;
35 // { dg-final { cleanup-repo-files } }