]> git.saurik.com Git - apple/objc4.git/blob - test/nsprotocol.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / nsprotocol.m
1 // TEST_CONFIG
2
3 #include "test.h"
4 #include <objc/Protocol.h>
5
6 int main()
7 {
8 // Class Protocol is always a subclass of NSObject
9
10 testassert(objc_getClass("NSObject"));
11
12 Class cls = objc_getClass("Protocol");
13 testassert(class_getInstanceMethod(cls, sel_registerName("isProxy")));
14 testassert(class_getSuperclass(cls) == objc_getClass("NSObject"));
15
16 succeed(__FILE__);
17 }