1 /* Contributed by Nicola Pero - Tue Jul 3 10:55:21 BST 2001 */
2 #import "../../objc-obj-c++-shared/Object1.h"
3 #import "../../objc-obj-c++-shared/next-mapping.h"
4 #include <objc/objc-api.h>
6 /* This test demonstrate a failure in object_is_meta_class which was fixed */
8 @interface EvilClass : Object
17 @implementation EvilClass
21 /* The following one is used in the runtime to mark meta classes */
29 /* Create an object of our EvilClass */
30 EvilClass *evilObject = [EvilClass new];
32 /* Now check that the object is not a meta class object */
33 if (object_is_meta_class (evilObject))
35 printf ("object_is_meta_class failed\n");