[ASan] fix assign_large_valloc_to_global.cc to use the correct header for valloc() on OSX.

llvm-svn: 192901
This commit is contained in:
Alexander Potapenko 2013-10-17 15:48:24 +00:00
parent 8db352d532
commit 1f5573cca2
1 changed files with 4 additions and 0 deletions

View File

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