From 51072bd6bf79ef2bc6a922079bff57c31c1effbc Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:47:26 +0000 Subject: Vendor import of libc++ release_39 branch r276489: https://llvm.org/svn/llvm-project/libcxx/branches/release_39@276489 --- .../tuple.apply/make_from_tuple.pass.cpp | 214 +++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp (limited to 'test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp') diff --git a/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp b/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp new file mode 100644 index 000000000000..143ae195e6f4 --- /dev/null +++ b/test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp @@ -0,0 +1,214 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11, c++14 + +// + +// template constexpr T make_from_tuple(Tuple&&); + +#include +#include +#include +#include +#include + +#include "test_macros.h" +#include "type_id.h" + +// std::array is explicitly allowed to be initialized with A a = { init-list };. +// Disable the missing braces warning for this reason. +#include "disable_missing_braces_warning.h" + +template +struct ConstexprConstructibleFromTuple { + template + explicit constexpr ConstexprConstructibleFromTuple(Args&&... xargs) + : args{std::forward(xargs)...} {} + Tuple args; +}; + +template +struct ConstructibleFromTuple; + +template