diff options
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place')
-rw-r--r-- | libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.place/placeholders.pass.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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 <functional> +#include <type_traits> template <class T> 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<T>::value, ""); + static_assert(std::is_nothrow_move_constructible<T>::value, ""); } int main() |