X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Fbound1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Fbound1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=fb7bd107d90514fc253452c9a67bb63d658328e7;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.ext/bound1.C b/gcc/testsuite/g++.old-deja/g++.ext/bound1.C deleted file mode 100644 index fb7bd107..00000000 --- a/gcc/testsuite/g++.old-deja/g++.ext/bound1.C +++ /dev/null @@ -1,29 +0,0 @@ -// Testcase for cast of bound pointer to member function. -// Special g++ Options: -Wno-pmf-conversions -// Build don't link: - -struct A { - int f (); -}; - -typedef int (*fptr)(A *); -typedef void* vptr; -typedef int (A::*pmf)(); - -void foo (A* ap, pmf fp, int A::* ip) -{ - fptr p; - vptr q; - A a; - - p = (fptr)(ap->*fp); - p = (fptr)(ap->*fp); - p = (fptr)(ap->*(&A::f)); - p = (fptr)(a.*fp); - p = (fptr)(a.*(&A::f)); - - q = (vptr)(ap->*fp); - q = (vptr)(ap->*(&A::f)); - q = (vptr)(a.*fp); - q = (vptr)(a.*(&A::f)); -}