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