1 /* Contributed by Nicola Pero - Sat 8 Oct 2011 16:47:48 BST */
4 /* Test that if a class has no +initialize method, the superclass
5 implementation is called. */
7 static int class_variable = 0;
14 + (int) classVariable;
17 @implementation TestClass
24 return class_variable;
28 @interface TestSubClass : TestClass
31 @implementation TestSubClass
36 if ([TestClass classVariable] != 1)
41 if ([TestSubClass classVariable] != 2)