summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/predefined-macros.c
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-01-03 02:46:46 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-01-03 02:46:46 +0000
commit3a5ff5cbd21e5f853a2f1c796090ffa9e364836e (patch)
tree551a263b77772587a2ced6766a144dfae63b33e7 /clang/test/Preprocessor/predefined-macros.c
parentcbcc98fb50f5b110a1c0f13fe475832a5c7a3866 (diff)
downloadbcm5719-llvm-3a5ff5cbd21e5f853a2f1c796090ffa9e364836e.tar.gz
bcm5719-llvm-3a5ff5cbd21e5f853a2f1c796090ffa9e364836e.zip
Teach the frontend to provide the builtin preprocessor defines for
-ffast-math. llvm-svn: 147440
Diffstat (limited to 'clang/test/Preprocessor/predefined-macros.c')
-rw-r--r--clang/test/Preprocessor/predefined-macros.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/clang/test/Preprocessor/predefined-macros.c b/clang/test/Preprocessor/predefined-macros.c
index 85a0cb80415..5b03872c1f6 100644
--- a/clang/test/Preprocessor/predefined-macros.c
+++ b/clang/test/Preprocessor/predefined-macros.c
@@ -1,12 +1,14 @@
-// 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
+// This test verifies that the correct macros are predefined.
+//
+// RUN: %clang_cc1 %s -E -dM -triple i686-pc-win32 -fms-extensions \
+// 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
+//
+// RUN: %clang_cc1 %s -E -dM -ffast-math -o - \
+// RUN: | FileCheck %s --check-prefix=CHECK-FAST-MATH
+// CHECK-FAST-MATH: #define __FAST_MATH__
OpenPOWER on IntegriCloud