1 /* Contributed by Nicola Pero - Fri Dec 14 08:36:00 GMT 2001 */
4 #include <objc/objc-api.h>
5 #include <objc/Object.h>
7 extern void abort (void);
9 /* Test loading unclaimed categories - categories of a class defined
10 separately from the class itself. */
13 /* unclaimed-category-1.m contains only the class definition but not
14 the categories. unclaimed-category-1a.m contains only the
15 categories of the class, but not the class itself. We want to
16 check that the runtime can load the class from one module (file)
17 and the categories from another module (file). */
19 #include "unclaimed-category-1.h"
21 @implementation TestClass
26 #ifdef __NEXT_RUNTIME__
27 + initialize { return self; }
37 testClass = objc_get_class ("TestClass");
43 test = (TestClass *)(class_create_instance (testClass));