blob: 8ec4d7ecf67a679c3976e646d2f9a61cd405d5d2 [file] [log] [blame]
Chandler Carruthba9186c2012-01-03 02:46:46 +00001// This test verifies that the correct macros are predefined.
2//
3// RUN: %clang_cc1 %s -E -dM -triple i686-pc-win32 -fms-extensions \
4// RUN: -fmsc-version=1300 -o - | FileCheck %s --check-prefix=CHECK-MS
5// CHECK-MS: #define _INTEGRAL_MAX_BITS 64
6// CHECK-MS: #define _MSC_EXTENSIONS 1
7// CHECK-MS: #define _MSC_VER 1300
8// CHECK-MS: #define _M_IX86 600
9// CHECK-MS: #define _M_IX86_FP
10// CHECK-MS: #define _WIN32 1
Aaron Ballman5b31d552012-03-10 22:21:14 +000011// CHECK-MS-NOT: #define __GNUC__
Chandler Carruthba9186c2012-01-03 02:46:46 +000012//
13// RUN: %clang_cc1 %s -E -dM -ffast-math -o - \
14// RUN: | FileCheck %s --check-prefix=CHECK-FAST-MATH
15// CHECK-FAST-MATH: #define __FAST_MATH__