1*7c3d14c8STreehugger Robot // Make sure we report atexit stats. 2*7c3d14c8STreehugger Robot // RUN: %clangxx_asan -O3 %s -o %t 3*7c3d14c8STreehugger Robot // RUN: %env_asan_opts=atexit=1:print_stats=1 %run %t 2>&1 | FileCheck %s 4*7c3d14c8STreehugger Robot // 5*7c3d14c8STreehugger Robot // No atexit output on Android due to 6*7c3d14c8STreehugger Robot // https://code.google.com/p/address-sanitizer/issues/detail?id=263 7*7c3d14c8STreehugger Robot // XFAIL: android 8*7c3d14c8STreehugger Robot 9*7c3d14c8STreehugger Robot #include <stdlib.h> 10*7c3d14c8STreehugger Robot #if !defined(__APPLE__) && !defined(__FreeBSD__) 11*7c3d14c8STreehugger Robot #include <malloc.h> 12*7c3d14c8STreehugger Robot #endif 13*7c3d14c8STreehugger Robot int *p1 = (int*)malloc(900); 14*7c3d14c8STreehugger Robot int *p2 = (int*)malloc(90000); 15*7c3d14c8STreehugger Robot int *p3 = (int*)malloc(9000000); main()16*7c3d14c8STreehugger Robotint main() { } 17*7c3d14c8STreehugger Robot 18*7c3d14c8STreehugger Robot // CHECK: AddressSanitizer exit stats: 19