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