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