1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // is_move_constructible
14 #include <type_traits>
15 #include "test_macros.h"
18 void test_is_move_constructible()
20 static_assert( std::is_move_constructible<T>::value, "");
22 static_assert( std::is_move_constructible_v<T>, "");
27 void test_is_not_move_constructible()
29 static_assert(!std::is_move_constructible<T>::value, "");
31 static_assert(!std::is_move_constructible_v<T>, "");
55 virtual ~Abstract() = 0;
65 #if TEST_STD_VER >= 11
72 test_is_not_move_constructible<char[3]>();
73 test_is_not_move_constructible<char[]>();
74 test_is_not_move_constructible<void>();
75 test_is_not_move_constructible<Abstract>();
77 test_is_move_constructible<A>();
78 test_is_move_constructible<int&>();
79 test_is_move_constructible<Union>();
80 test_is_move_constructible<Empty>();
81 test_is_move_constructible<int>();
82 test_is_move_constructible<double>();
83 test_is_move_constructible<int*>();
84 test_is_move_constructible<const int*>();
85 test_is_move_constructible<NotEmpty>();
86 test_is_move_constructible<bit_zero>();
87 test_is_move_constructible<B>();