brintos

brintos / llvm-project-archived public Read only

0
0
Text · 264 B · 5db37e8 Raw
13 lines · cpp
1// RUN: %clang_cl_asan %Od %s %Fe%t2// RUN: not %run %t 2>&1 | FileCheck %s3// REQUIRES: asan-32-bits4 5#include <malloc.h>6 7int main() {8  while (true) {9    void *ptr = malloc(200 * 1024 * 1024);  // 200MB10  }11// CHECK: SUMMARY: AddressSanitizer: out-of-memory12}13