llvm-project/compiler-rt/test/asan/TestCases/assign_large_valloc_to_glob...

9 lines
213 B
C++

// Make sure we don't report a leak nor hang.
// RUN: %clangxx_asan -O3 %s -o %t && %t
#include <stdlib.h>
#ifndef __APPLE__
#include <malloc.h>
#endif // __APPLE__
int *p = (int*)valloc(1 << 20);
int main() { }