1 /* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
7 #include "load-category-2.h"
9 /* Compile the categories in random order to prevent the runtime from
10 sending +load in the correct order just because the classes happen
11 to have been compiled in that order. */
12 @implementation TestClass2 (Category)
15 printf ("[TestClass2(Category) +load]\n");
17 /* Check that the corresponding class's +load was done. */
18 check_that_load_step_was_completed (1);
20 complete_load_step (4);
24 @implementation TestClass3 (Category)
27 printf ("[TestClass3(Category) +load]\n");
29 /* Check that the corresponding class's +load was done. */
30 check_that_load_step_was_completed (2);
32 complete_load_step (5);
36 @implementation TestClass1 (Category)
39 printf ("[TestClass1(Category) +load]\n");
41 /* Check that the corresponding class's +load was done. */
42 check_that_load_step_was_completed (0);
44 complete_load_step (3);