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(memptr: (void **)&p, alignment: 4096, size: 1 << 20); } |
7 |
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(memptr: (void **)&p, alignment: 4096, size: 1 << 20); } |
7 |