1 // RUN: %clang -target i686-windows -fms-compatibility -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-NO-MSC-VERSION 2 3 // CHECK-NO-MSC-VERSION: _MSC_BUILD 1 4 // CHECK-NO-MSC-VERSION: _MSC_FULL_VER 170000000 5 // CHECK-NO-MSC-VERSION: _MSC_VER 1700 6 7 // RUN: %clang -target i686-windows -fms-compatibility -fmsc-version=1600 -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-MSC-VERSION 8 9 // CHECK-MSC-VERSION: _MSC_BUILD 1 10 // CHECK-MSC-VERSION: _MSC_FULL_VER 160000000 11 // CHECK-MSC-VERSION: _MSC_VER 1600 12 13 // RUN: %clang -target i686-windows -fms-compatibility -fmsc-version=160030319 -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-MSC-VERSION-EXT 14 15 // CHECK-MSC-VERSION-EXT: _MSC_BUILD 1 16 // CHECK-MSC-VERSION-EXT: _MSC_FULL_VER 160030319 17 // CHECK-MSC-VERSION-EXT: _MSC_VER 1600 18 19 // RUN: %clang -target i686-windows -fms-compatibility -fmsc-version=14 -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-MSC-VERSION-MAJOR 20 21 // CHECK-MSC-VERSION-MAJOR: _MSC_BUILD 1 22 // CHECK-MSC-VERSION-MAJOR: _MSC_FULL_VER 140000000 23 // CHECK-MSC-VERSION-MAJOR: _MSC_VER 1400 24 25 // RUN: %clang -target i686-windows -fms-compatibility -fmsc-version=17.00 -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-MSC-VERSION-MAJOR-MINOR 26 27 // CHECK-MSC-VERSION-MAJOR-MINOR: _MSC_BUILD 1 28 // CHECK-MSC-VERSION-MAJOR-MINOR: _MSC_FULL_VER 170000000 29 // CHECK-MSC-VERSION-MAJOR-MINOR: _MSC_VER 1700 30 31 // RUN: %clang -target i686-windows -fms-compatibility -fmsc-version=15.00.20706 -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-MSC-VERSION-MAJOR-MINOR-BUILD 32 33 // CHECK-MSC-VERSION-MAJOR-MINOR-BUILD: _MSC_BUILD 1 34 // CHECK-MSC-VERSION-MAJOR-MINOR-BUILD: _MSC_FULL_VER 150020706 35 // CHECK-MSC-VERSION-MAJOR-MINOR-BUILD: _MSC_VER 1500 36 37 // RUN: %clang -target i686-windows -fms-compatibility -fmsc-version=15.00.20706.01 -dM -E - </dev/null -o - | FileCheck %s -check-prefix CHECK-MSC-VERSION-MAJOR-MINOR-BUILD-PATCH 38 39 // CHECK-MSC-VERSION-MAJOR-MINOR-BUILD-PATCH: _MSC_BUILD 1 40 // CHECK-MSC-VERSION-MAJOR-MINOR-BUILD-PATCH: _MSC_FULL_VER 150020706 41 // CHECK-MSC-VERSION-MAJOR-MINOR-BUILD-PATCH: _MSC_VER 1500 42 43