Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / derived2.C
blob7335369a23875017ee00fe4e011288b63d18d838
1 // { dg-do assemble  }
2 // { dg-options "" }
4 template <typename T>
5 void f(T);
6 template <>
7 void f(int) {}
9 struct B {
10   typedef int I;
13 template <typename T> 
14 struct D1 : virtual public B {
15   typedef T I;
19 template <typename T> 
20 struct D : virtual public B, public D1<T>
22   void g()
23     {
24       I i;
25       f(i);
26     }
29 int
30 main()
32   D<double> d;
33   d.g();