PR c/29467
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_funloc_tests_3_funcs.c
blob994da0a505d15e53acb63c1907279b44f2c70937
1 /* These functions support the test case c_funloc_tests_3. */
2 #include <stdlib.h>
3 #include <stdio.h>
5 int printIntC(int i)
7 return 3*i;
10 int (*returnFunc(void))(int)
12 return &printIntC;
15 void callFunc(int(*func)(int), int pass, int compare)
17 int result = (*func)(pass);
18 if(result != compare)
20 printf("FAILED: Got %d, expected %d\n", result, compare);
21 abort();
23 else
24 printf("SUCCESS: Got %d, expected %d\n", result, compare);