aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/t28.C
blob: dd524cb781ac443ec9bb799a00adafd711c50a64 (plain)
1
2
3
4
5
6
7
8
9
10
// Build don't link: 

template <class X> class B;
template <class X> int f (B<X> b) { return 37; }
template <class Y> class B { public: Y y; B() { y = 1; } };

int foo () {
  B<double> bd;
  return f(bd);
}