gcc/testsuite/objc.dg/special/load-category-1a.m
raw| 1 | /* Contributed by Nicola Pero <[email protected]>, December 2010. */ |
| 2 | |
| 3 | #include <stdlib.h> |
| 4 | #include <objc/objc.h> |
| 5 | |
| 6 | #include "load-category-1.h" |
| 7 | |
| 8 | @implementation TestClass2 |
| 9 | + initialize { return self; } |
| 10 | + load |
| 11 | { |
| 12 | increase_load_count (); |
| 13 | } |
| 14 | @end |
| 15 | |
| 16 | @implementation TestClass1 (Category) |
| 17 | + load |
| 18 | { |
| 19 | increase_load_count (); |
| 20 | } |
| 21 | @end |