[PATCH] D19347: Enable stack-use-after-scope tests

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 13:25:55 PDT 2016


eugenis added inline comments.

================
Comment at: test/asan/TestCases/use-after-scope-dtor-order.cc:11
@@ -10,3 +10,3 @@
     // CHECK: ERROR: AddressSanitizer: stack-use-after-scope
-    // CHECK:  #0 0x{{.*}} in IntHolder::~IntHolder{{.*}}use-after-scope-dtor-order.cc:[[@LINE-2]]
+    // CHECK:  #0 0x{{.*}} in IntHolder::~IntHolder{{.*}}.cc:[[@LINE-2]]
   }
----------------
why are you removing the file name?

================
Comment at: test/asan/TestCases/use-after-scope-if.cc:1
@@ +1,2 @@
+// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope %s -o %t && \
+// RUN:     not %run %t 2>&1 | FileCheck %s
----------------
-asan-use-after-scope=1 for consistency

================
Comment at: test/asan/TestCases/use-after-scope-loop.cc:1
@@ +1,2 @@
+// RUN: %clangxx_asan -O1 -mllvm -asan-use-after-scope %s -o %t && \
+// RUN:     not %run %t 2>&1 | FileCheck %s
----------------
-asan-use-after-scope=1


http://reviews.llvm.org/D19347





More information about the llvm-commits mailing list