Sign in
third-party-mirror
/
mingw-w64
/
d007f27aa6bcd1f7502b050a38fad17ce94e8a31
/
.
/
mingw-w64-crt
/
testcases
/
t_fctptr.c
blob: 9a24929a54bf4cf8c480d54e8c35f3c154cce20b [
file
] [
log
] [
blame
]
#include
<stdlib.h>
#include
<malloc.h>
void
*(*
my_malloc
)(
size_t
)
=
malloc
;
void
(*
my_free
)(
void
*)
=
free
;
int
main
()
{
void
*
p
=
(*
my_malloc
)
(
1024
);
if
(!
p
)
abort
();
(*
my_free
)(
p
);
return
0
;
}