summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/use-after-scope-loop-bug.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/use-after-scope-loop-bug.cc
parentfb53d0996999f9a82d65cb78540598be79d93d1d (diff)
downloadcompiler-rt-692b01cdac57043f8a69f5943142266a63cb721d.tar.gz
[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/use-after-scope-loop-bug.cc')
-rw-r--r--test/asan/TestCases/use-after-scope-loop-bug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/use-after-scope-loop-bug.cc b/test/asan/TestCases/use-after-scope-loop-bug.cc
index 4f483f204..d4b12eca9 100644
--- a/test/asan/TestCases/use-after-scope-loop-bug.cc
+++ b/test/asan/TestCases/use-after-scope-loop-bug.cc
@@ -1,7 +1,7 @@
// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \
// RUN: not %run %t 2>&1 | FileCheck %s
-int *p;
+volatile int *p;
int main() {
// Variable goes in and out of scope.