2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p3524a.C
blob1b0afede5f1e046718f8e418bf0df49ef9b4af38
1 // { dg-do assemble  }
2 // Make sure we can initialize a reference to a templated type, that
3 // requires a conversion from a derived type to a base type.
5 // prms-id: 3524
7 struct cc2Vector
8 {};
10 template <class T>
11 struct ccPair
13     ccPair (const cc2Vector&);
16 struct ccLine  : cc2Vector
18     double distToPoint  (const ccPair <float> &);
21 void foo ()
23     ccLine l2;
24     l2.distToPoint (l2);