8 objc\[\d+\]: Method cache corrupted.*
13 objc\[\d+\]: Method cache corrupted\.
14 CRASHED: SIG(ILL|TRAP)
21 #if !__OBJC2__ || __arm__
25 fprintf(stderr, "objc1\n");
34 typedef uint32_t mask_t;
36 typedef uint16_t mask_t;
45 struct bucket_t *buckets;
56 @interface Subclass : TestRoot @end
57 @implementation Subclass @end
61 Class cls = [TestRoot class];
65 // Test cache::find by clobbering the cache and then adding a method
66 struct cache_t *cache = &((__bridge struct class_t *)cls)->cache;
68 cache->buckets[0].sel = (void*)~0;
69 cache->buckets[0].imp = (void*)~0;
71 fprintf(stderr, "crash now\n");
72 class_addMethod(cls, @selector(fake:o:rama:), nil, nil);
74 fail("should have crashed");