2 #include <Foundation/NSObject.h>
3 #include <objc/runtime.h>
4 #include "../runtime/objc-rtp.h"
8 Class c = [NSObject class];
10 Method *methods = class_copyMethodList(c, &numMethods);
12 for (i=0; i<numMethods; ++i) {
13 // <rdar://problem/6190950> method_getName crash on NSObject method when GC is enabled
14 SEL aMethod = method_getName(methods[i]);
15 if (aMethod == (SEL)kIgnore)