summaryrefslogtreecommitdiffstats
path: root/libcxx/test/experimental/utilities/utility/version.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-07-17 05:31:31 +0000
committerEric Fiselier <eric@efcs.ca>2014-07-17 05:31:31 +0000
commit531d8b2bc41f6b61bb2ff5c8b4fef1aa6703211a (patch)
tree2d8245b53a3c85804339f9f9e7ff1e8aad9b3632 /libcxx/test/experimental/utilities/utility/version.pass.cpp
parent371aac1adbf23404a1e9472a2d40139c993c84c1 (diff)
downloadbcm5719-llvm-531d8b2bc41f6b61bb2ff5c8b4fef1aa6703211a.tar.gz
bcm5719-llvm-531d8b2bc41f6b61bb2ff5c8b4fef1aa6703211a.zip
[libcxx] Add <experimental/utility> header for LFTS.
Summary: This patch adds the `<experimental/utility>` header as specified in the latest draft of the library fundamentals TS. `<experimental/utility>` only contains `class erased_type`. This patch also updates the documentation to list the `erased_type` class as "initial implementation complete". Test Plan: Three test cases where added: 1. Test that `_LIBCPP_VERSION` is defined. 2. Test that `<utility>` has been included. 3. Test that `erased_type` is in the correct namespace and is constexpr default constructible. Reviewers: mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4510 llvm-svn: 213226
Diffstat (limited to 'libcxx/test/experimental/utilities/utility/version.pass.cpp')
-rw-r--r--libcxx/test/experimental/utilities/utility/version.pass.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/experimental/utilities/utility/version.pass.cpp b/libcxx/test/experimental/utilities/utility/version.pass.cpp
new file mode 100644
index 00000000000..437712454ae
--- /dev/null
+++ b/libcxx/test/experimental/utilities/utility/version.pass.cpp
@@ -0,0 +1,20 @@
+//===----------------------------------------------------------------------===//
+//
+// 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.
+//
+//===----------------------------------------------------------------------===//
+
+// <experimental/utility>
+
+#include <experimental/utility>
+
+#ifndef _LIBCPP_VERSION
+#error _LIBCPP_VERSION not defined
+#endif
+
+int main()
+{
+}
OpenPOWER on IntegriCloud