[PATCH] D11092: use-after-dtor cmd option

Evgeniy Stepanov eugenis at google.com
Fri Jul 10 11:55:26 PDT 2015


eugenis added inline comments.

================
Comment at: test/Driver/fsanitize.c:126
@@ +125,3 @@
+// RUN: %clang -target x86_64-linux-gnu -fsanitize=memory -fsanitize-memory-use-after-dtor -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-USE-AFTER-DTOR
+// CHECK-MSAN-USE-AFTER-DTOR: -fsanitize-memory-use-after-dtor
+
----------------
This test is passing because this CHECK matches the following output:
clang-3.7: warning: argument unused during compilation: '-fsanitize-memory-use-after-dtor'

The CHECK could be improved like this:
-cc1{{.*}}-fsanitize-memory-use-after-dtor

And then it will fail because you are not passing the option to the compiler (see SanitizerArgs.cpp:569).



http://reviews.llvm.org/D11092







More information about the cfe-commits mailing list