aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/decl1.c
blob: 6049b4afdd6955a1f189aaed687d14392ac53e29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

/* Local function declarations */

int f (int p)
{
    p = p + 1;
     return p;
}

int main (int argc, char **argv)
{
    int (*p)(int);
    int f();
    int i;

    p = f;
    i = (*p)(1);
    printf("Result is %d\n", i);
    return 0;
}