X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Faddrfunc1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Faddrfunc1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=e0948a5d3b5a2030007ce9bddda6c5692718602f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.ext/addrfunc1.C b/gcc/testsuite/g++.old-deja/g++.ext/addrfunc1.C deleted file mode 100644 index e0948a5d..00000000 --- a/gcc/testsuite/g++.old-deja/g++.ext/addrfunc1.C +++ /dev/null @@ -1,18 +0,0 @@ -// Test that taking the address of a member function name produces -// a pointer to member function. -// Contributed by Jason Merrill -// Special g++ Options: -fms-extensions -// Build don't link: - -struct A { }; -int (A::*p)(); - -struct B { - int f () { return 0; } - void g (); -}; - -void B::g () -{ - p = (int (A::*)())&f; -}