Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / asan / TestCases / atexit_stats.cpp
blobc8d97da529212e0de347f0ae54455ac5d837e2e6
1 // Make sure we report atexit stats.
2 // RUN: %clangxx_asan -O3 %s -o %t
3 // RUN: %env_asan_opts=atexit=1:print_stats=1 %run %t 2>&1 | FileCheck %s
4 //
5 // No atexit output in older versions of Android due to
6 // https://code.google.com/p/address-sanitizer/issues/detail?id=263
7 // UNSUPPORTED: android
9 #include <stdlib.h>
10 #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
11 #include <malloc.h>
12 #endif
13 int *p1 = (int*)malloc(900);
14 int *p2 = (int*)malloc(90000);
15 int *p3 = (int*)malloc(9000000);
16 int main() { }
18 // CHECK: AddressSanitizer exit stats: