Sign in
android
/
platform
/
external
/
compiler-rt
/
7c91505
/
.
/
test
/
asan
/
TestCases
/
Windows
/
oom.cc
blob: b24cddf17a97980af74060fcd0bd3e533617e3f9 [
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
free
(
ptr
);
}
// CHECK: failed to allocate
}