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