diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-12-03 13:35:41 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-12-03 13:35:41 +0000 |
commit | 948698a1c629005cc27de7ca5497504a2f6159e9 (patch) | |
tree | e7acdeff4de39260a846ba17fbd358fada2de360 /test | |
parent | 4c7c2fc940873aee416eb6039bd06598a5a40dbc (diff) |
[asan] Fix stale_stack_leak.cc test in ASan-UAR mode.
This test does an intentional use-after-return, but this is not the focus of
the test, so ignore it.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/lsan/TestCases/stale_stack_leak.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lsan/TestCases/stale_stack_leak.cc b/test/lsan/TestCases/stale_stack_leak.cc index 0fbe42ce9..4b8a54edf 100644 --- a/test/lsan/TestCases/stale_stack_leak.cc +++ b/test/lsan/TestCases/stale_stack_leak.cc @@ -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); } |