gcc/testsuite/objc.dg/special/load-category-1.h
raw| 1 | /* Contributed by Nicola Pero <[email protected]>, December 2010. */ |
| 2 | |
| 3 | /* Test that +load works when a category is defined in a different |
| 4 | module than the main class. */ |
| 5 | |
| 6 | /* This function should be called any time +load is invoked, so we can |
| 7 | keep the count. */ |
| 8 | extern int increase_load_count (void); |
| 9 | |
| 10 | @interface TestClass1 |
| 11 | { |
| 12 | id isa; |
| 13 | } |
| 14 | @end |
| 15 | |
| 16 | @interface TestClass2 |
| 17 | { |
| 18 | id isa; |
| 19 | } |
| 20 | @end |