1 /* Crash due to descriptionFor(Instance|Class)Method applied to
2 a protocol with no instance/class methods respectively.
3 Problem report and original fix by richard@brainstorm.co.uk. */
6 #include <objc/Object.h>
7 #include <objc/Protocol.h>
9 @protocol NoInstanceMethods
13 @protocol NoClassMethods
20 [@protocol(NoInstanceMethods) descriptionForInstanceMethod: @selector(name)];
21 [@protocol(NoInstanceMethods) descriptionForClassMethod: @selector(name)];
22 [@protocol(NoClassMethods) descriptionForInstanceMethod: @selector(name)];
23 [@protocol(NoClassMethods) descriptionForClassMethod: @selector(name)];