2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p3524b.C
blob34d106040b91c8bef0bf852a891614906e6ccdbd
1 // { dg-do assemble  }
2 // Make sure we can cast to a templated type, that requires a conversion by
3 // constructor, from a derived type to a base type.
5 // prms-id: 3524
7 template <class T>
8 struct ccPair {
9     ccPair () { }
12 template <class T>
13 struct ccO : ccPair<T> {
14   ccO () { }
17 void foo ()
19   ccO<float> r;
20   (ccPair<float>)r;