X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Faddrfunc4.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Faddrfunc4.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=d8e9987a45ca1d8f0845af5f17ff9249ea682063;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.ext/addrfunc4.C b/gcc/testsuite/g++.old-deja/g++.ext/addrfunc4.C deleted file mode 100644 index d8e9987a..00000000 --- a/gcc/testsuite/g++.old-deja/g++.ext/addrfunc4.C +++ /dev/null @@ -1,24 +0,0 @@ -// Test that an object-dependent reference to a member function can be -// used to produce a pointer to member function, as in VC++. -// Contributed by Jason Merrill -// Special g++ Options: -fms-extensions - -struct A -{ - int f(int a) { return 0; } - void f(int a, int b) { } -}; - -typedef int (A::* pmf1)(int); -typedef void (A::* pmf2)(int, int); - -int main() -{ - A a; - pmf1 fn1; - pmf2 fn2; - - fn1 = a.f; - fn1 = (pmf1)a.f; - fn2 = (pmf2)a.f; -};