Home | History | Annotate | Download | only in Posix
      1 // Make sure we don't report a leak nor hang.
      2 // RUN: %clangxx_asan -O3 %s -o %t && %run %t
      3 #include <stdlib.h>
      4 #include <unistd.h>
      5 #if !defined(__APPLE__) && !defined(__FreeBSD__)
      6 # include <malloc.h>
      7 #endif  // !__APPLE__ && !__FreeBSD__
      8 int *p = (int*)valloc(1 << 20);
      9 int main() { }
     10