summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/speculative_load.cc
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-11-02 15:39:08 +0000
committerReid Kleckner <rnk@google.com>2016-11-02 15:39:08 +0000
commit692b01cdac57043f8a69f5943142266a63cb721d (patch)
tree47f59644842f81f404ced6449f76b688626b236e /test/asan/TestCases/speculative_load.cc
parentfb53d0996999f9a82d65cb78540598be79d93d1d (diff)
[asan] Add more dynamic CRT mode tests
Only tests using %clang_cl_asan were using the dynamic CRT before this. The unit tests and lit tests using %clangxx_asan were using the static CRT. Many cross-platform tests fail with the dynamic CRT, so I had to add win32-(static|dynamic)-asan lit features. Also deletes some redundant tests in TestCases/Windows that started failing with this switch. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@285821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/speculative_load.cc')
-rw-r--r--test/asan/TestCases/speculative_load.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/asan/TestCases/speculative_load.cc b/test/asan/TestCases/speculative_load.cc
index 2409d7a5e..fdf70eb39 100644
--- a/test/asan/TestCases/speculative_load.cc
+++ b/test/asan/TestCases/speculative_load.cc
@@ -27,6 +27,10 @@ struct S {
__asan_poison_memory_region(_data._s._ch, 23);
}
+ ~S() {
+ __asan_unpoison_memory_region(_data._s._ch, 23);
+ }
+
bool is_long() const {
return _data._s._size & 1;
}