From c281a7a19fbbf229334f595e879e0fed42613264 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 5 Feb 2015 20:28:37 +0000 Subject: Get tests running with warnings. Fix warnings in headers and tests llvm-svn: 228344 --- .../bind/func.bind/func.bind.place/placeholders.pass.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place') diff --git a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place/placeholders.pass.cpp b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place/placeholders.pass.cpp index fa791d46ff5..246186040c5 100644 --- a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place/placeholders.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place/placeholders.pass.cpp @@ -12,13 +12,20 @@ // placeholders #include +#include template void test(const T& t) { + // Test default constructible. T t2; + ((void)t2); + // Test copy constructible. T t3 = t; + ((void)t3); + static_assert(std::is_nothrow_copy_constructible::value, ""); + static_assert(std::is_nothrow_move_constructible::value, ""); } int main() -- cgit v1.2.3