Add test for Windows predefined macros.

llvm-svn: 117000
This commit is contained in:
Michael J. Spencer 2010-10-21 05:23:48 +00:00
parent 4992ca4b17
commit cac9df3bf6
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// This test verifies that the correct macros are predefined. It currently
// only checks for Microsoft macros.
// RUN: %clang_cc1 %s -E -dM -triple i686-pc-win32 -fms-extensions -fmsc-version=1300 -o - | FileCheck %s
// CHECK: #define _INTEGRAL_MAX_BITS 64
// CHECK: #define _MSC_EXTENSIONS 1
// CHECK: #define _MSC_VER 1300
// CHECK: #define _M_IX86 600
// CHECK: #define _M_IX86_FP
// CHECK: #define _WIN32 1