1 /* Contributed by Nicola Pero - Fri Mar 9 19:39:15 CET 2001 */
4 #include "../../objc-obj-c++-shared/next-mapping.h"
6 #include <objc/objc-api.h>
8 /* Test getting and calling the IMP of a method */
17 @implementation TestClass
28 int (* imp) (id, SEL, int);
30 class = objc_get_class ("TestClass");
31 selector = @selector (next:);
32 imp = (int (*)(id, SEL, int))method_get_imp
33 (class_get_class_method (class, selector));
35 if (imp (class, selector, 5) != 6)