summaryrefslogtreecommitdiff
path: root/test/Headers/float-darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Headers/float-darwin.c')
-rw-r--r--test/Headers/float-darwin.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Headers/float-darwin.c b/test/Headers/float-darwin.c
new file mode 100644
index 0000000000000..54bac1ac630f7
--- /dev/null
+++ b/test/Headers/float-darwin.c
@@ -0,0 +1,13 @@
+// REQUIRES: system-darwin
+// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only -std=c11 -isysroot %S/Inputs %s
+#include <float.h>
+
+// Test the #include_next on float.h works on Darwin.
+#ifndef FLT_HAS_SUBNORM
+ #error "FLT_HAS_SUBNORM not defined"
+#endif
+
+// Test that definition from builtin are also present.
+#ifndef FLT_MAX
+ #error "FLT_MAX not defined"
+#endif