summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/unify3.C
blob: 848aca763614af38d0da351e150fdaaf5096e075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }

template <class T1, class T2>
struct ComputeBinaryType
{
};

template<class T1>
struct ComputeBinaryType<T1, double> {
  void g();
};

template<class T1>
struct ComputeBinaryType<T1&, double> {
  void h();
};

void f()
{ 
  ComputeBinaryType<double, double> cb;
  cb.g();
}