[PATCH] D30518: Fix msc-version.c test to handle _MSC_VER=1910

Dave Bartolomeo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 1 16:56:35 PST 2017


DaveBartolomeo created this revision.

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.


https://reviews.llvm.org/D30518

Files:
  test/Driver/msc-version.c


Index: test/Driver/msc-version.c
===================================================================
--- test/Driver/msc-version.c
+++ test/Driver/msc-version.c
@@ -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 {{....}}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30518.90259.patch
Type: text/x-patch
Size: 351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170302/ef63c4f8/attachment.bin>


More information about the cfe-commits mailing list