tests2: move into tests
[tinycc.git] / tests / tests2 / 42_function_pointer.c
blob49c331bf5d301269bfb4cf9d5855fc61e9458138
1 #include <stdio.h>
3 int fred(int p)
5 printf("yo %d\n", p);
6 return 42;
9 int (*f)(int) = &fred;
11 int main()
13 printf("%d\n", (*f)(24));
15 return 0;
18 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/