]> git.saurik.com Git - apple/objc4.git/blob - test/classgetclass.m
objc4-437.tar.gz
[apple/objc4.git] / test / classgetclass.m
1 #include "test.h"
2 #include <objc/objc-runtime.h>
3 #import <Foundation/Foundation.h>
4
5 @interface Foo:NSObject
6 @end
7 @implementation Foo
8 @end
9
10 extern Class gdb_class_getClass(Class cls);
11
12 int main()
13 {
14 #if __OBJC2__
15 testassert(gdb_class_getClass([Foo class]) == [Foo class]);
16 #endif
17
18 succeed(__FILE__);
19 }