]> granicus.if.org Git - clang/commitdiff
Fix msc-version.c test to handle _MSC_VER=1910
authorDave Bartolomeo <dbartol@microsoft.com>
Fri, 3 Mar 2017 00:08:55 +0000 (00:08 +0000)
committerDave Bartolomeo <dbartol@microsoft.com>
Fri, 3 Mar 2017 00:08:55 +0000 (00:08 +0000)
Previously, VC++ has always set _MSC_VER to a four-digit value with the two least significant digits set to zero. Visual Studio 2017, however, sets _MSC_VER=1910, and we expect to update the least significant digit as we release major updates for VS 2017. This patch fixes the msc-version.c test to handle non-zero values in the two least significant digits of _MSC_VER.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296843 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/msc-version.c

index 7e71b9cac8ea90e6152bd3ffe414b3711fd887bf..ec87e4d41eb4d1b1af130d76e1e72a5ccd4bb03c 100644 (file)
@@ -63,4 +63,4 @@
 
 // CHECK-MS-EXTENSIONS: _MSC_BUILD 1
 // CHECK-MS-EXTENSIONS: _MSC_FULL_VER {{.+}}
-// CHECK-MS-EXTENSIONS: _MSC_VER {{..}}00
+// CHECK-MS-EXTENSIONS: _MSC_VER {{....}}