[PATCH] D20759: [asan] Added -fsanitize-address-use-after-scope flag
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Tue May 31 11:37:29 PDT 2016
eugenis accepted this revision.
eugenis added a comment.
This revision is now accepted and ready to land.
LGTM w/ nit
================
Comment at: test/Driver/fsanitize.c:109
@@ +108,3 @@
+
+// RUN: %clang -target x86_64-linux-gnu -fsanitize=address -fsanitize-address-use-after-scope %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-USE-AFTER-SCOPE
+// CHECK-USE-AFTER-SCOPE: -cc1{{.*}}-fsanitize-address-use-after-scope
----------------
Please add a negative test (asan w/o use-after-scope does not add the cc1 flag).
http://reviews.llvm.org/D20759
More information about the llvm-commits
mailing list