diff options
Diffstat (limited to 'gcc/testsuite/objc/execute/class-4.m')
-rw-r--r-- | gcc/testsuite/objc/execute/class-4.m | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/testsuite/objc/execute/class-4.m b/gcc/testsuite/objc/execute/class-4.m index 61ce30a6a80..a862191636c 100644 --- a/gcc/testsuite/objc/execute/class-4.m +++ b/gcc/testsuite/objc/execute/class-4.m @@ -1,8 +1,6 @@ /* Contributed by Nicola Pero - Tue Mar 6 23:05:53 CET 2001 */ -#include "../../objc-obj-c++-shared/next-mapping.h" #include <objc/objc.h> -#include <objc/objc-api.h> /* Tests creating a root class and a subclass with an ivar and accessor methods */ @@ -14,9 +12,7 @@ @end @implementation RootClass -#ifdef __NEXT_RUNTIME__ + initialize { return self; } -#endif @end @interface SubClass : RootClass @@ -50,7 +46,7 @@ int main (void) 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")); + object = class_createInstance (objc_getClass ("SubClass"), 0); test_accessor_method (object, 0, 1, 1, -3, -3); return 0; |