X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.martin%2Fpmf2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.martin%2Fpmf2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=481fe2cb86587718403e6a0924a4b547f5a4cfc5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.martin/pmf2.C b/gcc/testsuite/g++.old-deja/g++.martin/pmf2.C deleted file mode 100644 index 481fe2cb..00000000 --- a/gcc/testsuite/g++.old-deja/g++.martin/pmf2.C +++ /dev/null @@ -1,21 +0,0 @@ -// Special g++ Options: -Wno-pmf-conversions -// Test conversion of pointers to virtual member functions to -// pointers to non-member functions. - -struct A{ - int i; - A::A():i(1){} - virtual void foo(); -}a; - -void A::foo() -{ - i = 0; -} - -int main() -{ - void (*f)(A*) = (void(*)(A*))(&A::foo); - f(&a); - return a.i; -}