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. */
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
6 #include <objc/Protocol.h>
7 #include "../objc-obj-c++-shared/runtime.h"
13 @protocol NoInstanceMethods
17 @protocol NoClassMethods
24 protocol_getMethodDescription (@protocol(NoInstanceMethods), @selector(name), YES, YES);
25 protocol_getMethodDescription (@protocol(NoInstanceMethods), @selector(name), YES, NO);
26 protocol_getMethodDescription (@protocol(NoClassMethods), @selector(name), YES, YES);
27 protocol_getMethodDescription (@protocol(NoClassMethods), @selector(name), YES, NO);