1 /* Contributed by Nicola Pero - Tue Jul 3 10:55:21 BST 2001 */
3 #include "../../objc-obj-c++-shared/runtime.h"
4 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
6 /* This test demonstrate a failure in object_is_meta_class which was fixed */
8 @interface EvilClass : TestsuiteObject
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 (class_isMetaClass (object_getClass (evilObject))
34 && class_isMetaClass (evilObject))
36 printf ("object_is_meta_class failed\n");