diff options
Diffstat (limited to 'clang/test/Preprocessor/predefined-macros.c')
-rw-r--r-- | clang/test/Preprocessor/predefined-macros.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/predefined-macros.c b/clang/test/Preprocessor/predefined-macros.c new file mode 100644 index 0000000..5c11c3b --- /dev/null +++ b/clang/test/Preprocessor/predefined-macros.c @@ -0,0 +1,15 @@ +// This test verifies that the correct macros are predefined. +// +// RUN: %clang_cc1 %s -E -dM -triple i686-pc-win32 -fms-extensions -fms-compatibility \ +// RUN: -fmsc-version=1300 -o - | FileCheck %s --check-prefix=CHECK-MS +// CHECK-MS: #define _INTEGRAL_MAX_BITS 64 +// CHECK-MS: #define _MSC_EXTENSIONS 1 +// CHECK-MS: #define _MSC_VER 1300 +// CHECK-MS: #define _M_IX86 600 +// CHECK-MS: #define _M_IX86_FP +// CHECK-MS: #define _WIN32 1 +// CHECK-MS-NOT: #define __GNUC__ +// +// RUN: %clang_cc1 %s -E -dM -ffast-math -o - \ +// RUN: | FileCheck %s --check-prefix=CHECK-FAST-MATH +// CHECK-FAST-MATH: #define __FAST_MATH__ |