aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/predefined-macros.c
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-10-21 05:23:48 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-10-21 05:23:48 +0000
commit13f8cbfbd273999c75999947689234a385514469 (patch)
tree3ea69ab918f0e76109bd85aed184379dac68d871 /test/Preprocessor/predefined-macros.c
parentdae4ac4fe56ec60fc93b3e3c9f51e79e682084b9 (diff)
Add test for Windows predefined macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/predefined-macros.c')
-rw-r--r--test/Preprocessor/predefined-macros.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Preprocessor/predefined-macros.c b/test/Preprocessor/predefined-macros.c
new file mode 100644
index 0000000000..85a0cb8041
--- /dev/null
+++ b/test/Preprocessor/predefined-macros.c
@@ -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