Author: rnk Date: Wed May 31 15:07:36 2017 New Revision: 304337 URL: http://llvm.org/viewvc/llvm-project?rev=304337&view=rev Log: Fix cl-diagnostics.c test by hardcoding the version of MSVC to mimic
Modified: cfe/trunk/test/Driver/cl-diagnostics.c Modified: cfe/trunk/test/Driver/cl-diagnostics.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/cl-diagnostics.c?rev=304337&r1=304336&r2=304337&view=diff ============================================================================== --- cfe/trunk/test/Driver/cl-diagnostics.c (original) +++ cfe/trunk/test/Driver/cl-diagnostics.c Wed May 31 15:07:36 2017 @@ -13,12 +13,12 @@ // CARET-NOT: -fno-caret-diagnostics // CARET-NOT: -fno-show-column -// RUN: not %clang_cl /diagnostics:classic /Zs -c -- %s 2>&1 | FileCheck %s --check-prefix=OUTPUT_CLASSIC +// RUN: not %clang_cl -fms-compatibility-version=19 /diagnostics:classic /Zs -c -- %s 2>&1 | FileCheck %s --check-prefix=OUTPUT_CLASSIC // OUTPUT_CLASSIC: cl-diagnostics.c({{[0-9]+}}): error: "asdf" // OUTPUT_CLASSIC-NOT: #error -// RUN: not %clang_cl /diagnostics:caret /Zs -c -- %s 2>&1 | FileCheck %s --check-prefix=OUTPUT_CARET +// RUN: not %clang_cl -fms-compatibility-version=19 /diagnostics:caret /Zs -c -- %s 2>&1 | FileCheck %s --check-prefix=OUTPUT_CARET // OUTPUT_CARET: cl-diagnostics.c({{[0-9]+,[0-9]+}}): error: "asdf" // OUTPUT_CARET-NEXT: #error "asdf" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits