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