classgetclass.m 282 B

1234567891011121314151617
  1. // TEST_CONFIG
  2. #include "test.h"
  3. #include <objc/objc-runtime.h>
  4. #include <objc/objc-gdb.h>
  5. #import <Foundation/NSObject.h>
  6. @interface Foo:NSObject
  7. @end
  8. @implementation Foo
  9. @end
  10. int main()
  11. {
  12. testassert(gdb_class_getClass([Foo class]) == [Foo class]);
  13. succeed(__FILE__);
  14. }