1 /* Check if method parameters that are functions are gracefully decayed
3 /* Contributed by Ziemowit Laski <zlaski@apple.com> */
6 #include <objc/Object.h>
9 @interface Func: Object
10 + (int) processNumber:(int)a and:(int)b usingFunction:(int(int,int))func;
14 + (int) processNumber:(int)a and:(int)b usingFunction:(int(int,int))func {
19 static int my_computation(int a, int b) {
23 static int processNumber(int a, int b, int func(int, int)) {
28 int result = processNumber (6, 8, my_computation);
32 result = [Func processNumber:8 and:6 usingFunction:my_computation];