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