gcc/testsuite/objc.dg/special/unclaimed-category-1.h
raw| 1 | /* Contributed by Nicola Pero - Fri Dec 14 08:36:00 GMT 2001 */ |
| 2 | /* { dg-additional-options "-Wno-objc-root-class" } */ |
| 3 | |
| 4 | /* Test loading unclaimed categories - categories of a class defined |
| 5 | separately from the class itself. */ |
| 6 | |
| 7 | @interface TestClass |
| 8 | { |
| 9 | Class isa; |
| 10 | } |
| 11 | - (int)D; |
| 12 | @end |
| 13 | |
| 14 | @interface TestClass (A) |
| 15 | - (int)A; |
| 16 | @end |
| 17 | |
| 18 | @interface TestClass (B) |
| 19 | - (int)B; |
| 20 | @end |
| 21 | |
| 22 | @interface TestClass (C) |
| 23 | - (int)C; |
| 24 | @end |
| 25 | |
| 26 |