[asan] fix a test on Mac

llvm-svn: 192960
This commit is contained in:
Kostya Serebryany 2013-10-18 09:42:24 +00:00
parent 70d5abfba2
commit e2007b706e
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,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() { }