OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.mike / p3524c.C
1 // Make sure we can cast to a templated type, that requires a conversion by
2 // constructor, from a non-aggregate type.
3
4 // Build don't link:
5 // prms-id: 3524
6
7 template <class T>
8 struct ccPair {
9     ccPair (int i) { }
10 };
11
12 void foo ()
13 {
14   (ccPair<float>)1;
15 }