1 // Check that LSan annotations work fine.
2 // RUN: %clangxx_lsan -O0 %s -o %t && %run %t
3 // RUN: %clangxx_lsan -O3 %s -o %t && %run %t
5 #include <sanitizer/lsan_interface.h>
12 __lsan_ignore_object(x
);
14 z
= new int[1000000]; // Large enough for the secondary allocator.
15 __lsan_ignore_object(z
);
18 __lsan::ScopedDisabler disabler
;