blob: 71a9c2a759a90db5dbf067f378aee8492ae9ac4f [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: allocator is terminating the process instead of returning 0
}