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 /* Test loading unclaimed categories - categories of a class defined
8 separately from the class itself. */
11 /* unclaimed-category-1.m contains only the class definition but not
12 the categories. unclaimed-category-1a.m contains only the
13 categories of the class, but not the class itself. We want to
14 check that the runtime can load the class from one module (file)
15 and the categories from another module (file). */
17 #include "unclaimed-category-1.h"
19 @implementation TestClass
24 #ifdef __NEXT_RUNTIME__
25 + initialize { return self; }
35 testClass = objc_get_class ("TestClass");
41 test = (TestClass *)(class_create_instance (testClass));