2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / objc.dg / special / unclaimed-category-1.h
blob52586f0152160ead9c1e46bc1e1b0d9baaaaecda
1 /* Contributed by Nicola Pero - Fri Dec 14 08:36:00 GMT 2001 */
2 #include <objc/objc.h>
3 #include <objc/Object.h>
5 #ifdef __NEXT_RUNTIME__
6 #define objc_get_class(C) objc_getClass(C)
7 #define class_create_instance(C) class_createInstance(C, 0)
8 #endif
10 /* Test loading unclaimed categories - categories of a class defined
11 separately from the class itself. */
13 @interface TestClass
15 id isa;
17 - (int)D;
18 @end
20 @interface TestClass (A)
21 - (int)A;
22 @end
24 @interface TestClass (B)
25 - (int)B;
26 @end
28 @interface TestClass (C)
29 - (int)C;
30 @end