X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fconv2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fconv2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=e713304c575668d6aab7eefdc4467c4b3b9ca47e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/conv2.C b/gcc/testsuite/g++.old-deja/g++.other/conv2.C deleted file mode 100644 index e713304c..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/conv2.C +++ /dev/null @@ -1,19 +0,0 @@ -// Build don't link: -// Special g++ Options: -pedantic-errors - -void cheat( int* i ) { ++(*i); } - -struct t { - void cheat( int& i ) { ++i; } -}; - -int main() -{ - void (t::*member)( const int& ) = &t::cheat; // ERROR - conversion - void (*cheater)( const int* ) = &cheat; // ERROR - converting - t t2; - const int i=1; - int j=1; - (t2.*member)( i ); - (t2.*member)( j ); -}