Sign in
third-party-mirror
/
mingw-w64
/
79951edef1e76a79d7ce0fa1cf94391b2f6b3d94
/
.
/
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
;
}