[PATCH] clang-cl: Diagnose the usage of ASAN with a debug runtime library
Timur Iskhodzhanov
timurrrr at google.com
Tue Oct 14 03:56:31 PDT 2014
================
Comment at: test/Driver/fsanitize.c:161
@@ +160,3 @@
+// RUN: %clang_cl -fsanitize=address -c -MTd -### -- %s 2>&1 | FileCheck %s -check-prefix=CHECK-ASAN-DEBUGRTL2
+// CHECK-ASAN-DEBUGRTL2: address sanitizer with a debug runtime library not supported yet
+
----------------
I think you can do something like
// RUN: ... -MDd ... | FileCheck %s -check-prefix=CHECK-ASAN-DEBUG-RTL
// RUN: ... -MTd ... | FileCheck %s -check-prefix=CHECK-ASAN-DEBUG-RTL
// RUN: ... -LDd ... | FileCheck %s -check-prefix=CHECK-ASAN-DEBUG-RTL
// CHECK-ASAN-DEBUG-RTL: <warning message>
// RUN: ...
// RUN: ...
// RUN: ...
// CHECK-ASAN-RELEASE-RTL-NOTE: <warning message>
http://reviews.llvm.org/D5764
More information about the cfe-commits
mailing list