diff options
author | Vitaly Buka <vitalybuka@google.com> | 2016-07-14 21:18:06 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2016-07-14 21:18:06 +0000 |
commit | 6aa450c291eca353c1f8ba888436070969e54ff6 (patch) | |
tree | afa38f8c7fe67077df3fed50ec5bc6baecfa72c7 /test | |
parent | 0528f1ef0dca42935c00f53ea96ed532cda3434a (diff) | |
download | compiler-rt-6aa450c291eca353c1f8ba888436070969e54ff6.tar.gz |
Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope
Summary:
When test was added we had no -fsanitize-address-use-after-scope in clang
so we had to use -mllvm -asan-use-after-scope=1.
Reviewers: eugenis
Subscribers: kubabrecka
Differential Revision: https://reviews.llvm.org/D22382
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@275475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/asan/TestCases/use-after-scope-capture.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-chars.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-dtor-order.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-if.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-inlined.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-loop-bug.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-loop-removed.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-loop.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-nobug.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope-temp.cc | 2 | ||||
-rw-r--r-- | test/asan/TestCases/use-after-scope.cc | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/test/asan/TestCases/use-after-scope-capture.cc b/test/asan/TestCases/use-after-scope-capture.cc index 926cf135b..07aab672e 100644 --- a/test/asan/TestCases/use-after-scope-capture.cc +++ b/test/asan/TestCases/use-after-scope-capture.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -std=c++11 -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -std=c++11 -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s #include <functional> diff --git a/test/asan/TestCases/use-after-scope-chars.cc b/test/asan/TestCases/use-after-scope-chars.cc index cc983a7cb..51fc5fa38 100644 --- a/test/asan/TestCases/use-after-scope-chars.cc +++ b/test/asan/TestCases/use-after-scope-chars.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // XFAIL: * diff --git a/test/asan/TestCases/use-after-scope-dtor-order.cc b/test/asan/TestCases/use-after-scope-dtor-order.cc index 4b16df727..8cdfa6a1c 100644 --- a/test/asan/TestCases/use-after-scope-dtor-order.cc +++ b/test/asan/TestCases/use-after-scope-dtor-order.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> diff --git a/test/asan/TestCases/use-after-scope-if.cc b/test/asan/TestCases/use-after-scope-if.cc index 8779161ee..8180077a0 100644 --- a/test/asan/TestCases/use-after-scope-if.cc +++ b/test/asan/TestCases/use-after-scope-if.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *p; diff --git a/test/asan/TestCases/use-after-scope-inlined.cc b/test/asan/TestCases/use-after-scope-inlined.cc index 7146d900c..fc8c7f7bb 100644 --- a/test/asan/TestCases/use-after-scope-inlined.cc +++ b/test/asan/TestCases/use-after-scope-inlined.cc @@ -2,7 +2,7 @@ // happens. "always_inline" is not enough, as Clang doesn't emit // llvm.lifetime intrinsics at -O0. // -// RUN: %clangxx_asan -O2 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O2 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *arr; diff --git a/test/asan/TestCases/use-after-scope-loop-bug.cc b/test/asan/TestCases/use-after-scope-loop-bug.cc index 6d8e88870..6ad9bf326 100644 --- a/test/asan/TestCases/use-after-scope-loop-bug.cc +++ b/test/asan/TestCases/use-after-scope-loop-bug.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // // FIXME: @llvm.lifetime.* are not emitted for x. diff --git a/test/asan/TestCases/use-after-scope-loop-removed.cc b/test/asan/TestCases/use-after-scope-loop-removed.cc index a9ea45051..cd71a5046 100644 --- a/test/asan/TestCases/use-after-scope-loop-removed.cc +++ b/test/asan/TestCases/use-after-scope-loop-removed.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // // FIXME: Compiler removes for-loop but keeps x variable. For unknown reason diff --git a/test/asan/TestCases/use-after-scope-loop.cc b/test/asan/TestCases/use-after-scope-loop.cc index dc96239e8..d99761bc7 100644 --- a/test/asan/TestCases/use-after-scope-loop.cc +++ b/test/asan/TestCases/use-after-scope-loop.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *p[3]; diff --git a/test/asan/TestCases/use-after-scope-nobug.cc b/test/asan/TestCases/use-after-scope-nobug.cc index b7bf8ca92..cf471dc34 100644 --- a/test/asan/TestCases/use-after-scope-nobug.cc +++ b/test/asan/TestCases/use-after-scope-nobug.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && %run %t +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && %run %t #include <stdio.h> #include <stdlib.h> diff --git a/test/asan/TestCases/use-after-scope-temp.cc b/test/asan/TestCases/use-after-scope-temp.cc index b238d8547..3736f914d 100644 --- a/test/asan/TestCases/use-after-scope-temp.cc +++ b/test/asan/TestCases/use-after-scope-temp.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s // // Lifetime for temporaries is not emitted yet. diff --git a/test/asan/TestCases/use-after-scope.cc b/test/asan/TestCases/use-after-scope.cc index e1f7302f9..1aa675822 100644 --- a/test/asan/TestCases/use-after-scope.cc +++ b/test/asan/TestCases/use-after-scope.cc @@ -1,4 +1,4 @@ -// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope=1 %s -o %t && \ +// RUN: %clangxx_asan -O1 -fsanitize-address-use-after-scope %s -o %t && \ // RUN: not %run %t 2>&1 | FileCheck %s int *p = 0; |