summaryrefslogtreecommitdiffstats
path: root/clang/test/Headers/tgmath-darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Headers/tgmath-darwin.c')
-rw-r--r--clang/test/Headers/tgmath-darwin.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Headers/tgmath-darwin.c b/clang/test/Headers/tgmath-darwin.c
new file mode 100644
index 00000000000..b24b6c0c720
--- /dev/null
+++ b/clang/test/Headers/tgmath-darwin.c
@@ -0,0 +1,12 @@
+// REQUIRES: system-darwin
+// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only -std=c11 -isysroot %S/Inputs %s
+#include <tgmath.h>
+
+// Test the #include_next on tgmath.h works on Darwin.
+#ifndef SYS_TGMATH_H
+ #error "SYS_TGMATH_H not defined"
+#endif
+
+#ifndef __TGMATH_H
+ #error "__TGMATH_H not defined"
+#endif
OpenPOWER on IntegriCloud