From 53a420fba21cf1644972b34dcd811a43cdb8368d Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:18:58 +0000 Subject: Vendor import of libc++ trunk r290819: https://llvm.org/svn/llvm-project/libcxx/trunk@290819 --- .../tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp (limited to 'test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp') diff --git a/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp b/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp new file mode 100644 index 000000000000..fbcda44e4065 --- /dev/null +++ b/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/dtor.pass.cpp @@ -0,0 +1,35 @@ +//===----------------------------------------------------------------------===// +// +// 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 + +// + +// template class tuple; + +// ~tuple(); + +#include +#include +#include +#include + +int main() +{ + static_assert(std::is_trivially_destructible< + std::tuple<> >::value, ""); + static_assert(std::is_trivially_destructible< + std::tuple >::value, ""); + static_assert(std::is_trivially_destructible< + std::tuple >::value, ""); + static_assert(!std::is_trivially_destructible< + std::tuple >::value, ""); + static_assert(!std::is_trivially_destructible< + std::tuple >::value, ""); +} -- cgit v1.2.3