test145.c 431 Bytes
Newer Older
1
typedef __crust__ unsigned char *crust_t;
2 3 4

typedef crust_t (*prueba)();

5
typedef __crust__ struct {
6
	prueba function_p;
7
} *tmp;
8 9 10

#define NULL ((void *)0)

11
crust_t function(void);
12

13 14
void function2(crust_t);

15
void main(tmp param1) {
16 17 18
	param1->function_p = function; // WARNING: using param1 when it is possible to it to be NULL
	param1->function_p(); // WARNING: using param1 when it is possible to it to be NULL
	function2(param1);
19
}