Skip to content
Snippets Groups Projects
Commit 17d8c376 authored by Reid Kleckner's avatar Reid Kleckner
Browse files

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
parent 085028c3
No related branches found
No related tags found
No related merge requests found
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
// CARET-NOT: -fno-caret-diagnostics // CARET-NOT: -fno-caret-diagnostics
// CARET-NOT: -fno-show-column // 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: cl-diagnostics.c({{[0-9]+}}): error: "asdf"
// OUTPUT_CLASSIC-NOT: #error // 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: cl-diagnostics.c({{[0-9]+,[0-9]+}}): error: "asdf"
// OUTPUT_CARET-NEXT: #error "asdf" // OUTPUT_CARET-NEXT: #error "asdf"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment