diff options
author | Jeff Law <law@gcc.gnu.org> | 1997-12-01 11:18:10 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-12-01 11:18:10 -0700 |
commit | fbdd9d76bf6cf6189bdd680d3d3c6f5878154bd6 (patch) | |
tree | ffdfb7a42b6d8c56a8074bfbec18681017fda0ea | |
parent | f45ebe475405f8298ff7521a3a1cce3b153d91ec (diff) | |
download | gcc-fbdd9d76bf6cf6189bdd680d3d3c6f5878154bd6.zip gcc-fbdd9d76bf6cf6189bdd680d3d3c6f5878154bd6.tar.gz gcc-fbdd9d76bf6cf6189bdd680d3d3c6f5878154bd6.tar.bz2 |
From egcs release branch
From-SVN: r16867
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/spec1.C | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec1.C b/gcc/testsuite/g++.old-deja/g++.pt/spec1.C new file mode 100644 index 0000000..7467293 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/spec1.C @@ -0,0 +1,21 @@ +// Build don't link: + +template <class S, class T> +class mem_fun1_t { +public: + mem_fun1_t(S (T::*pf)(double)) {} +}; + +template <class T> +class mem_fun1_t<void, T> { +public: + mem_fun1_t(void (T::*pf)(double)) {} +}; + +struct Operation { + double eval(double) {} +}; + +int main() { + mem_fun1_t<double, Operation> m(&Operation::eval); +} |