X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fcasts2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fcasts2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=11a36b9f5c22dc6aff94049752a71374cf340e52;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/casts2.C b/gcc/testsuite/g++.old-deja/g++.law/casts2.C deleted file mode 100644 index 11a36b9f..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/casts2.C +++ /dev/null @@ -1,39 +0,0 @@ -// Build don't link: -// GROUPS passed casts -class VObject; - -typedef int boolean; - -typedef boolean (VObject::*method)(); -typedef boolean (VObject::*method0)(); -typedef boolean (VObject::*method1)(long); - -#define methodOf(o,m) (method)(&o::m) - - -class VObject { - public: - boolean perform(method ); - boolean perform(method , long); - void affectMethod(method ); - void dummy(){}; -}; - - -boolean VObject::perform(method m) -{ - method0 q = (method0)m; - return(this->*q)(); -} - - -boolean VObject::perform(method m, long param) -{ - method1 q = (method1)m; - return(this->*q)(param); - } - -void VObject::affectMethod(method m) -{ - m = methodOf(VObject, dummy); -}