1 /* Check if method parameters that are functions are gracefully decayed
3 /* Contributed by Ziemowit Laski <zlaski@apple.com> */
5 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
8 #include "../objc-obj-c++-shared/TestsuiteObject.m"
10 @interface Func: TestsuiteObject
11 + (int) processNumber:(int)a and:(int)b usingFunction:(int(int,int))func;
15 + (int) processNumber:(int)a and:(int)b usingFunction:(int(int,int))func {
20 static int my_computation(int a, int b) {
24 static int processNumber(int a, int b, int func(int, int)) {
29 int result = processNumber (6, 8, my_computation);
33 result = [Func processNumber:8 and:6 usingFunction:my_computation];