X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Fptrmem1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Ftemplate%2Fptrmem1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=ebd6a201a97d0becbade2c61415456fc953ceafc;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/template/ptrmem1.C b/gcc/testsuite/g++.dg/template/ptrmem1.C deleted file mode 100644 index ebd6a201..00000000 --- a/gcc/testsuite/g++.dg/template/ptrmem1.C +++ /dev/null @@ -1,33 +0,0 @@ -// { dg-do compile } - -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 31 Dec 2001 - -// PR 3716 tsubsting a pointer to member function did not create a -// pointer to member function. - -template -struct Closure -{ - T operator() (C & c) const { return (c.*M); } -}; - -template -struct Closure -{ - T operator()(C & c) const { return (c.*M)(); } -}; - -struct A -{ - int get(); -}; - -static Closure get_closure; - - -void Foo () -{ - A a; - get_closure (a); -}