diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/unify3.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/unify3.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/unify3.C b/gcc/testsuite/g++.old-deja/g++.pt/unify3.C new file mode 100644 index 000000000..848aca763 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/unify3.C @@ -0,0 +1,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(); +} |