8 extern uintptr_t objc_debug_realized_class_generation_count;
12 testassert(objc_debug_realized_class_generation_count > 0);
13 uintptr_t prev = objc_debug_realized_class_generation_count;
15 void *handle = dlopen("/System/Library/Frameworks/Foundation.framework/Foundation", RTLD_LAZY);
17 Class c = objc_getClass("NSFileManager");
19 testassert(objc_debug_realized_class_generation_count > prev);
21 prev = objc_debug_realized_class_generation_count;
22 c = objc_allocateClassPair([TestRoot class], "Dynamic", 0);
23 testassert(objc_debug_realized_class_generation_count > prev);
24 prev = objc_debug_realized_class_generation_count;
25 objc_registerClassPair(c);
26 testassert(objc_debug_realized_class_generation_count == prev);