test146.c 314 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
typedef __crust_t__ unsigned char *crust_t;

typedef crust_t (*prueba)();

typedef __crust_t__ struct {
	prueba function_p;
} *crust2_t;

#define NULL ((void *)0)

crust_t function();

void main(crust2_t param1) {
	main(param1);
	param1->function_p = function; // ERROR: param1 has been freed
	__crust_disable__
}