From 61b9a7258a7693d7f3674a5a1daf7b036ff1d382 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 6 Sep 2015 18:46:46 +0000 Subject: Import libc++ 3.7.0 release (r246257). --- .../array/array.tuple/tuple_element.pass.cpp | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 test/std/containers/sequences/array/array.tuple/tuple_element.pass.cpp (limited to 'test/std/containers/sequences/array/array.tuple/tuple_element.pass.cpp') diff --git a/test/std/containers/sequences/array/array.tuple/tuple_element.pass.cpp b/test/std/containers/sequences/array/array.tuple/tuple_element.pass.cpp new file mode 100644 index 0000000000000..91d6b4e5da22b --- /dev/null +++ b/test/std/containers/sequences/array/array.tuple/tuple_element.pass.cpp @@ -0,0 +1,54 @@ +//===----------------------------------------------------------------------===// +// +// 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. +// +//===----------------------------------------------------------------------===// + +// + +// tuple_element >::type + +#include +#include + +template +void test() +{ + { + typedef T Exp; + typedef std::array C; + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + } + { + typedef T const Exp; + typedef std::array const C; + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + } + { + typedef T volatile Exp; + typedef std::array volatile C; + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + } + { + typedef T const volatile Exp; + typedef std::array const volatile C; + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + static_assert((std::is_same::type, Exp>::value), ""); + } +} + +int main() +{ + test(); + test(); +} -- cgit v1.2.3