blob: 10b4fac417857d1fcceccf03d390a536a3b51afa (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Make sure we report atexit stats.
// RUN: %clangxx_asan -O3 %s -o %t
// RUN: ASAN_OPTIONS=atexit=1:print_stats=1 %t 2>&1 | FileCheck %s
#include <stdlib.h>
#include <malloc.h>
int *p1 = (int*)malloc(900);
int *p2 = (int*)malloc(90000);
int *p3 = (int*)malloc(9000000);
int main() { }
// CHECK: AddressSanitizer exit stats:
|