Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/unify3.C

raw
1 // { dg-do assemble }
2
3 template <class T1, class T2>
4 struct ComputeBinaryType
5 {
6 };
7
8 template<class T1>
9 struct ComputeBinaryType<T1, double> {
10 void g();
11 };
12
13 template<class T1>
14 struct ComputeBinaryType<T1&, double> {
15 void h();
16 };
17
18 void f()
19 {
20 ComputeBinaryType<double, double> cb;
21 cb.g();
22 }