Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
vendor
/
compiler_builtins
/
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
);
}