aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/decl1.c
blob: d2aedba75b5453c84c8b554d0f390a3645bdc782 (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 f();
    int i;

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