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 #include "next_mapping.h"
8 /* This test demonstrate a failure in object_is_class which was fixed */
10 /* Create a class whose instance variables mirror the struct used for
11 Class structures in the runtime ... yes we're feeling evil today */
12 @interface EvilClass : Object
21 @implementation EvilClass
25 /* The following one is used in the runtime to mark classes */
33 /* Create an object of our EvilClass */
34 EvilClass *evilObject = [EvilClass new];
36 /* Now check that the object is not a class object */
37 if (object_is_class (evilObject))
39 printf ("object_is_class failed\n");