summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/Posix/assign_large_valloc_to_global.cc
blob: 15096e5e7fe50e192964812f452a07f46c513dd9 (plain)
1
2
3
4
5
6
7
8
// Make sure we don't report a leak nor hang.
// RUN: %clangxx_asan -O3 %s -o %t && %run %t
#include <stdlib.h>
#ifndef __APPLE__
# include <malloc.h>
#endif  // __APPLE__
int *p = (int*)valloc(1 << 20);
int main() { }