diff options
Diffstat (limited to 'test/Driver/cl-runtime-flags.c')
-rw-r--r-- | test/Driver/cl-runtime-flags.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/Driver/cl-runtime-flags.c b/test/Driver/cl-runtime-flags.c index 8367531..a54aa1a 100644 --- a/test/Driver/cl-runtime-flags.c +++ b/test/Driver/cl-runtime-flags.c @@ -1,6 +1,3 @@ -// Don't attempt slash switches on msys bash. -// REQUIRES: shell-preserves-root - // Note: %s must be preceded by --, otherwise it may be interpreted as a // command-line option, e.g. on Mac where %s is commonly under /Users. @@ -87,3 +84,12 @@ // RUN: %clang_cl /MD /MT -### -- %s 2>&1 | FileCheck -check-prefix=MTOVERRIDE %s // MTOVERRIDE: "--dependent-lib=libcmt" + +// RUN: %clang_cl -### /Zl -- %s 2>&1 | FileCheck -check-prefix=CHECK-MTZl %s +// RUN: %clang_cl -### /MT /Zl -- %s 2>&1 | FileCheck -check-prefix=CHECK-MTZl %s +// CHECK-MTZl-NOT: "-D_DEBUG" +// CHECK-MTZl: "-D_MT" +// CHECK-MTZl-NOT: "-D_DLL" +// CHECK-MTZl-SAME: "-D_VC_NODEFAULTLIB" +// CHECK-MTZl-NOT: "--dependent-lib=libcmt" +// CHECK-MTZl-NOT: "--dependent-lib=oldnames" |