]> git.saurik.com Git - apple/objc4.git/blob - test/ismeta.m
objc4-437.tar.gz
[apple/objc4.git] / test / ismeta.m
1 #include "test.h"
2 #include <objc/objc-runtime.h>
3
4 @interface Super { id isa; } @end
5 @implementation Super
6 +(void)initialize { }
7 +class { return self; }
8 @end
9
10 int main()
11 {
12 testassert(!class_isMetaClass([Super class]));
13 testassert(class_isMetaClass([Super class]->isa));
14 testassert(!class_isMetaClass(nil));
15 succeed(__FILE__);
16 }