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