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