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