1 /* Contributed by Nicola Pero - Tue Jul 3 10:55:21 BST 2001 */
2 #import "../../objc-obj-c++-shared/next-mapping.h"
3 #import "../../objc-obj-c++-shared/Object1.h"
5 #include <objc/objc-api.h>
7 /* This test demonstrate a failure in object_is_class which was fixed */
9 /* Create a class whose instance variables mirror the struct used for
10 Class structures in the runtime ... yes we're feeling evil today */
11 @interface EvilClass : Object
20 @implementation EvilClass
24 /* The following one is used in the runtime to mark classes */
32 /* Create an object of our EvilClass */
33 EvilClass *evilObject = [EvilClass new];
35 /* Now check that the object is not a class object */
36 if (object_is_class (evilObject))
38 printf ("object_is_class failed\n");