blob: 84c2878edc1fc926a245f8ad0d9b0df26de04c68 [file] [log] [blame]
// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
// XFAIL: android
//
// Check that LSan annotations work fine.
// RUN: %clangxx_asan -O0 %s -o %t && %run %t
// RUN: %clangxx_asan -O3 %s -o %t && %run %t
#include <sanitizer/lsan_interface.h>
#include <stdlib.h>
int main() {
int *x = new int;
__lsan_ignore_object(x);
{
__lsan::ScopedDisabler disabler;
double *y = new double;
}
return 0;
}