From: Jeff Law Date: Mon, 1 Dec 1997 18:18:10 +0000 (-0700) Subject: From egcs release branch X-Git-Tag: releases/libf2c-0.5.21~469 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbdd9d76bf6cf6189bdd680d3d3c6f5878154bd6;p=thirdparty%2Fgcc.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 000000000000..7467293e1458 --- /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); +}