1 /* Contributed by Nicola Pero - Tue Jul 3 10:55:21 BST 2001 */
3 #include <objc/objc-api.h>
4 #include <objc/Object.h>
6 /* This test demonstrate a failure in object_is_class which was fixed */
8 /* Create a class whose instance variables mirror the struct used for
9 Class structures in the runtime ... yes we're feeling evil today */
10 @interface EvilClass : Object
19 @implementation EvilClass
23 /* The following one is used in the runtime to mark classes */
31 /* Create an object of our EvilClass */
32 EvilClass *evilObject = [EvilClass new];
34 /* Now check that the object is not a class object */
35 if (object_is_class (evilObject))
37 printf ("object_is_class failed\n");