Sign in
cobalt
/
cobalt
/
b95ea55ccebda33f820d043e4b4dc85c10d7584d
/
.
/
third_party
/
llvm-project
/
compiler-rt
/
test
/
asan
/
TestCases
/
Posix
/
assign_large_valloc_to_global.cc
blob: 8031d04aae4875ba4fa8fd363548107017362da8 [
file
] [
log
] [
blame
]
// Make sure we don't report a leak nor hang.
// RUN: %clangxx_asan -O3 %s -o %t && %run %t
#include
<stdlib.h>
#include
<unistd.h>
int
*
p
;
int
main
()
{
posix_memalign
((
void
**)&
p
,
4096
,
1
<<
20
);
}