From: Jeff Law Date: Mon, 1 Dec 1997 18:18:10 +0000 (-0700) Subject: From egcs release branch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbdd9d76bf6cf6189bdd680d3d3c6f5878154bd6;p=gcc.git From egcs release branch From-SVN: r16867 --- 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 00000000000..7467293e145 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/spec1.C @@ -0,0 +1,21 @@ +// Build don't link: + +template +class mem_fun1_t { +public: + mem_fun1_t(S (T::*pf)(double)) {} +}; + +template +class mem_fun1_t { +public: + mem_fun1_t(void (T::*pf)(double)) {} +}; + +struct Operation { + double eval(double) {} +}; + +int main() { + mem_fun1_t m(&Operation::eval); +}