From 17d8c376acd66d2233bc97c1f4765574581c7736 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 31 May 2017 20:07:36 +0000 Subject: [PATCH] Fix cl-diagnostics.c test by hardcoding the version of MSVC to mimic git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304337 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/cl-diagnostics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Driver/cl-diagnostics.c b/test/Driver/cl-diagnostics.c index 2f338e0787..975a8cf8bb 100644 --- a/test/Driver/cl-diagnostics.c +++ b/test/Driver/cl-diagnostics.c @@ -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" -- 2.40.0