[asan] Fix stale_stack_leak.cc test in ASan-UAR mode.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 3 Dec 2014 13:35:41 +0000 (13:35 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 3 Dec 2014 13:35:41 +0000 (13:35 +0000)
This test does an intentional use-after-return, but this is not the focus of
the test, so ignore it.

llvm-svn: 223230

compiler-rt/test/lsan/TestCases/stale_stack_leak.cc

index 0fbe42c..4b8a54e 100644 (file)
@@ -31,6 +31,7 @@ int main() {
 // it had a chance to see it. If LSan is invoked with atexit(), this works.
 // Otherwise, we need a different method.
 __attribute__((destructor))
+__attribute__((no_sanitize_address))
 void ConfirmPointerHasSurvived() {
   fprintf(stderr, "Value after LSan: %p.\n", *pp);
 }