Sign in
android
/
platform
/
external
/
compiler-rt
/
a1b6d6325763d05aaf42df7c615f55afc66d9e11
/
.
/
test
/
asan
/
TestCases
/
Windows
/
oom.cc
blob: 3475af79e6a4c8203e570c3f6610529d0ce61303 [
file
] [
log
] [
blame
]
// RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: not %run %t 2>&1 | FileCheck %s
#include
<malloc.h>
int
main
()
{
while
(
true
)
{
void
*
ptr
=
malloc
(
200
*
1024
*
1024
);
// 200MB
}
// CHECK: failed to allocate
}