summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp')
-rw-r--r--libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp
new file mode 100644
index 00000000000..da0707990d8
--- /dev/null
+++ b/libcxx/test/std/depr/depr.c.headers/complex.h.pass.cpp
@@ -0,0 +1,21 @@
+//===----------------------------------------------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <complex.h>
+
+#include <complex.h>
+
+#ifndef _LIBCPP_VERSION
+#error _LIBCPP_VERSION not defined
+#endif
+
+int main()
+{
+ std::complex<double> d;
+}
OpenPOWER on IntegriCloud