Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope
authorVitaly Buka <vitalybuka@google.com>
Thu, 14 Jul 2016 21:18:06 +0000 (21:18 +0000)
committerVitaly Buka <vitalybuka@google.com>
Thu, 14 Jul 2016 21:18:06 +0000 (21:18 +0000)
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

llvm-svn: 275475

compiler-rt/test/asan/TestCases/use-after-scope-capture.cc
compiler-rt/test/asan/TestCases/use-after-scope-chars.cc
compiler-rt/test/asan/TestCases/use-after-scope-dtor-order.cc
compiler-rt/test/asan/TestCases/use-after-scope-if.cc
compiler-rt/test/asan/TestCases/use-after-scope-inlined.cc
compiler-rt/test/asan/TestCases/use-after-scope-loop-bug.cc
compiler-rt/test/asan/TestCases/use-after-scope-loop-removed.cc
compiler-rt/test/asan/TestCases/use-after-scope-loop.cc
compiler-rt/test/asan/TestCases/use-after-scope-nobug.cc
compiler-rt/test/asan/TestCases/use-after-scope-temp.cc
compiler-rt/test/asan/TestCases/use-after-scope.cc

index 926cf13..07aab67 100644 (file)
@@ -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>
index cc983a7..51fc5fa 100644 (file)
@@ -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: *
 
index 4b16df7..8cdfa6a 100644 (file)
@@ -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>
index 8779161..8180077 100644 (file)
@@ -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;
index 7146d90..fc8c7f7 100644 (file)
@@ -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;
index 6d8e888..6ad9bf3 100644 (file)
@@ -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.
index a9ea450..cd71a50 100644 (file)
@@ -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
index dc96239..d99761b 100644 (file)
@@ -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];
index b7bf8ca..cf471dc 100644 (file)
@@ -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>
index b238d85..3736f91 100644 (file)
@@ -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.
index e1f7302..1aa6758 100644 (file)
@@ -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;