diff options
| author | David L. Jones <dlj@google.com> | 2016-12-07 23:39:44 +0000 |
|---|---|---|
| committer | David L. Jones <dlj@google.com> | 2016-12-07 23:39:44 +0000 |
| commit | 62cd86863ac8ea13948a0397f46eead6a18d60b0 (patch) | |
| tree | 7f8e8221e3fa8e08a43a3ec7c5c6d6a5f324b1e9 /clang/test/Driver/msvc-triple.c | |
| parent | 9a97acc097e1c90c65cc1e72d30bbee9c1870e1f (diff) | |
| download | bcm5719-llvm-62cd86863ac8ea13948a0397f46eead6a18d60b0.tar.gz bcm5719-llvm-62cd86863ac8ea13948a0397f46eead6a18d60b0.zip | |
Add more tests for MSVC version handling.
Summary:
This change adds more test cases for the default MSVC compatibility version:
1. When -fms-extensions is supplied, but -fmsc-version and
-fms-compatibility-version are not.
2. With the target triple specifies an MSVC environment, but no other
-fms* flags.
Reviewers: rnk, llvm-commits
Subscribers: hans, compnerd, amccarth
Differential Revision: https://reviews.llvm.org/D27498
llvm-svn: 288997
Diffstat (limited to 'clang/test/Driver/msvc-triple.c')
| -rw-r--r-- | clang/test/Driver/msvc-triple.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Driver/msvc-triple.c b/clang/test/Driver/msvc-triple.c index cb0c338f841..42bd02a158e 100644 --- a/clang/test/Driver/msvc-triple.c +++ b/clang/test/Driver/msvc-triple.c @@ -1,7 +1,9 @@ // RUN: %clang -target i686-pc-windows-msvc19 -S -emit-llvm %s -o - | FileCheck %s --check-prefix=TARGET-19 // RUN: %clang -target i686-pc-windows-msvc -S -emit-llvm %s -o - -fms-compatibility-version=19 | FileCheck %s --check-prefix=OVERRIDE-19 // RUN: %clang -target i686-pc-windows-msvc-elf -S -emit-llvm %s -o - | FileCheck %s --check-prefix=ELF-DEFAULT +// RUN: %clang -target i686-pc-windows-msvc -S -emit-llvm %s -o - | FileCheck %s --check-prefix=DEFAULT // TARGET-19: target triple = "i686-pc-windows-msvc19.0.0" // OVERRIDE-19: target triple = "i686-pc-windows-msvc19.0.0" // ELF-DEFAULT: target triple = "i686-pc-windows-msvc{{.*}}-elf" +// DEFAULT: target triple = "i686-pc-windows-msvc{{[^-]+}}" |

