From 531d8b2bc41f6b61bb2ff5c8b4fef1aa6703211a Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 17 Jul 2014 05:31:31 +0000 Subject: [libcxx] Add header for LFTS. Summary: This patch adds the `` header as specified in the latest draft of the library fundamentals TS. `` 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 `` 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 --- .../utility/utility.synop/includes.pass.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp (limited to 'libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp') diff --git a/libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp b/libcxx/test/experimental/utilities/utility/utility.synop/includes.pass.cpp new file mode 100644 index 00000000000..bcdd8b3879e --- /dev/null +++ b/libcxx/test/experimental/utilities/utility/utility.synop/includes.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. +// +//===----------------------------------------------------------------------===// + +// + +#include + +int main() +{ +#if _LIBCPP_STD_VER > 11 +# ifndef _LIBCPP_UTILITY +# error " must include " +# endif +#endif /* _LIBCPP_STD_VER > 11 */ +} -- cgit v1.2.3