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 #ifndef __APPLE__
      5 # include <malloc.h>
      6 #endif  // __APPLE__
      7 int *p = (int*)valloc(1 << 20);
      8 int main() { }
      9