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 _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits