ismeta.m 291 B

12345678910111213
  1. // TEST_CONFIG
  2. #include "test.h"
  3. #include "testroot.i"
  4. #include <objc/objc-runtime.h>
  5. int main()
  6. {
  7. testassert(!class_isMetaClass([TestRoot class]));
  8. testassert(class_isMetaClass(object_getClass([TestRoot class])));
  9. testassert(!class_isMetaClass(nil));
  10. succeed(__FILE__);
  11. }