blob: 52872c1f8aa446ed3644f282c4ed93a1a9157d9f [file] [log] [blame]
// UNSUPPORTED: target={{.*-windows-gnu}}
// RUN: %clang_cl_asan -Od %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: SUMMARY: AddressSanitizer: out-of-memory
}