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

source code of compiler-rt/test/asan/TestCases/Posix/assign_large_valloc_to_global.cpp