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); +}