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 int *p;
      6 int main() { posix_memalign((void **)&p, 4096, 1 << 20); }
      7