[ASan] fix compilation of atexit_stats.cc on OSX

llvm-svn: 192973
This commit is contained in:
Alexander Potapenko 2013-10-18 14:12:15 +00:00
parent 87dacc38b8
commit 2fe16d720c
1 changed files with 2 additions and 0 deletions

View File

@ -2,7 +2,9 @@
// RUN: %clangxx_asan -O3 %s -o %t
// RUN: ASAN_OPTIONS=atexit=1:print_stats=1 %t 2>&1 | FileCheck %s
#include <stdlib.h>
#if !defined(__APPLE__)
#include <malloc.h>
#endif
int *p1 = (int*)malloc(900);
int *p2 = (int*)malloc(90000);
int *p3 = (int*)malloc(9000000);