Home | History | Annotate | Download | only in Windows
      1 // RUN: %clang_cl_asan -O0 %s -Fe%t
      2 // RUN: not %run %t 2>&1 | FileCheck %s
      3 
      4 #include <malloc.h>
      5 
      6 int main() {
      7   while (true) {
      8     void *ptr = malloc(200 * 1024 * 1024);  // 200MB
      9   }
     10 // CHECK: failed to allocate
     11 }
     12