summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/assign_large_valloc_to_global.cc
blob: b0a5015769453888415a279643c941bb6e84a31a (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 && %t
#include <stdlib.h>
#ifndef __APPLE__
#include <malloc.h>
#endif  // __APPLE__
int *p = (int*)valloc(1 << 20);
int main() { }