blob: e3b1269d25ccc18b6e073f0d44804c5066768e84 [file] [log] [blame]
Kostya Serebryanya2e70d92013-10-18 07:57:59 +00001// Make sure we report atexit stats.
2// RUN: %clangxx_asan -O3 %s -o %t
3// RUN: ASAN_OPTIONS=atexit=1:print_stats=1 %t 2>&1 | FileCheck %s
4#include <stdlib.h>
Alexander Potapenko34fb7152013-10-18 14:12:15 +00005#if !defined(__APPLE__)
Kostya Serebryanya2e70d92013-10-18 07:57:59 +00006#include <malloc.h>
Alexander Potapenko34fb7152013-10-18 14:12:15 +00007#endif
Kostya Serebryanya2e70d92013-10-18 07:57:59 +00008int *p1 = (int*)malloc(900);
9int *p2 = (int*)malloc(90000);
10int *p3 = (int*)malloc(9000000);
11int main() { }
12
13// CHECK: AddressSanitizer exit stats: