X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Froot_methods.m;fp=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Froot_methods.m;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=4f2c2fa0ee481d7751467ec9b6d71e6d026ec404;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/objc/execute/root_methods.m b/gcc/testsuite/objc/execute/root_methods.m deleted file mode 100644 index 4f2c2fa0..00000000 --- a/gcc/testsuite/objc/execute/root_methods.m +++ /dev/null @@ -1,42 +0,0 @@ -/* Contributed by Nicola Pero - Thu Mar 8 16:27:46 CET 2001 */ -#include - -/* Test that instance methods of root classes are available as class - methods to other classes as well */ - -@interface RootClass -{ - Class isa; -} -- (id) self; -@end - -@implementation RootClass -- (id) self -{ - return self; -} -@end - -@interface NormalClass : RootClass -@end - -@implementation NormalClass : RootClass -@end - -int main (void) -{ - Class normal = objc_get_class ("NormalClass"); - - if (normal == Nil) - { - abort (); - } - - if ([NormalClass self] != normal) - { - abort (); - } - - return 0; -}