Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
c3bf9a3d51eeadc8772b8ed7377ff1c7e2f25f16
/
.
/
build_tests
/
tcmalloc.cc
blob: bc5f03ebe7baccfd26cdbf564f037a123ba6fdbd [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<cstdlib>
int
main
()
{
void
*
big_chunk
=
malloc
(
500000
+
read
(-
1
,
nullptr
,
0
));
if
(
write
(-
1
,
big_chunk
,
0
)
!=
-
1
)
return
1
;
free
(
big_chunk
);
}