summaryrefslogtreecommitdiffstats
path: root/libcxx/test/depr/depr.c.headers/tgmath_h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/depr/depr.c.headers/tgmath_h.pass.cpp')
-rw-r--r--libcxx/test/depr/depr.c.headers/tgmath_h.pass.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/libcxx/test/depr/depr.c.headers/tgmath_h.pass.cpp b/libcxx/test/depr/depr.c.headers/tgmath_h.pass.cpp
new file mode 100644
index 00000000000..4533b925f6c
--- /dev/null
+++ b/libcxx/test/depr/depr.c.headers/tgmath_h.pass.cpp
@@ -0,0 +1,22 @@
+//===----------------------------------------------------------------------===//
+//
+// ΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚThe LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <tgmath.h>
+
+#include <tgmath.h>
+
+#ifndef _LIBCPP_VERSION
+#error _LIBCPP_VERSION not defined
+#endif
+
+int main()
+{
+ std::complex<double> cd;
+ double x = sin(1.0);
+}
OpenPOWER on IntegriCloud