2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / repo3.C
blob495b9f72931d78e5279520d4de094c7d0d821bb0
1 // { dg-do link }
2 // { dg-options "-frepo" }
3 // Test that we properly generate the vtable and such for C.
4 // Contributed by scott snyder <snyder@fnal.gov>
6 // Build then link:
8 struct A
10   virtual ~A () {}
13 template <typename T>
14 struct B : virtual public A
16   virtual void foo () {}
19 template <typename T>
20 struct C : virtual public A
24 template <typename T>
25 struct D : public B<T>, public C<T>
29 main ()
31   D<int> x;