X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fptrmem9.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fptrmem9.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=f50ba22d1083da87d84d699e006e8cd227187228;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/ptrmem9.C b/gcc/testsuite/g++.old-deja/g++.other/ptrmem9.C deleted file mode 100644 index f50ba22d..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/ptrmem9.C +++ /dev/null @@ -1,18 +0,0 @@ -// Test that const-correctness is observed when using pointers-to-members. - -struct A { - int f () { return 1; } - int f () const { return 0; } -}; - -struct B { - A a; - B() { } -}; - -int main () -{ - A B::*bm = &B::a; - const B b; - return (b.*bm).f (); -}