4 objc\[\d+\]: Memory corruption in class list\.
12 @interface Super : TestRoot @end
13 @implementation Super @end
15 @interface Sub : Super @end
16 @implementation Sub @end
22 Class supercls = [Super class];
23 Class subcls = [Sub class];
24 id subobj __unused = [Sub alloc];
26 // Create a cycle in a superclass chain (Sub->supercls == Sub)
27 // then attempt to walk that chain. Runtime should halt eventually.
28 _objc_flush_caches(supercls);
29 ((Class *)(__bridge void *)subcls)[1] = subcls;
31 _objc_flush_caches(supercls);
36 fail("should have crashed");