]> git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/assign_large_valloc_to_global.cc
Imported Upstream version 1.5.0+dfsg1
[rustc.git] / src / compiler-rt / test / asan / TestCases / assign_large_valloc_to_global.cc
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() { }