X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Fclass-4.m;fp=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Fclass-4.m;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0ae723c035b13d9cbe908848241a6d6857ac40cb;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/objc/execute/class-4.m b/gcc/testsuite/objc/execute/class-4.m deleted file mode 100644 index 0ae723c0..00000000 --- a/gcc/testsuite/objc/execute/class-4.m +++ /dev/null @@ -1,52 +0,0 @@ -/* Contributed by Nicola Pero - Tue Mar 6 23:05:53 CET 2001 */ -#include -#include - -/* Tests creating a root class and a subclass with an ivar and - accessor methods */ - -@interface RootClass -{ - Class isa; -} -@end - -@implementation RootClass -@end - -@interface SubClass : RootClass -{ - int state; -} -- (void) setState: (int)number; -- (int) state; -@end - -@implementation SubClass -- (void) setState: (int)number -{ - state = number; -} -- (int) state -{ - return state; -} -@end - -#include "class-tests-1.h" -#define TYPE_OF_OBJECT_WITH_ACCESSOR_METHOD SubClass * -#include "class-tests-2.h" - -int main (void) -{ - SubClass *object; - - test_class_with_superclass ("SubClass", "RootClass"); - test_that_class_has_instance_method ("SubClass", @selector (setState:)); - test_that_class_has_instance_method ("SubClass", @selector (state)); - - object = class_create_instance (objc_lookup_class ("SubClass")); - test_accessor_method (object, 0, 1, 1, -3, -3); - - return 0; -}