Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
e8ca06af66574fcb09449ab1b4b71fb75c029496
/
.
/
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
);
}