OSDN Git Service

new testcases
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / t28.C
1 // Build don't link: 
2
3 template <class X> class B;
4 template <class X> int f (B<X> b) { return 37; }
5 template <class Y> class B { public: Y y; B() { y = 1; } };
6
7 int foo () {
8   B<double> bd;
9   return f(bd);
10 }