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 //===----------------------------------------------------------------------===//
14 #include <type_traits>
15 #include "test_macros.h"
18 void test_is_move_assignable()
20 static_assert(( std::is_move_assignable<T>::value), "");
22 static_assert(( std::is_move_assignable_v<T>), "");
27 void test_is_not_move_assignable()
29 static_assert((!std::is_move_assignable<T>::value), "");
31 static_assert((!std::is_move_assignable_v<T>), "");
59 test_is_move_assignable<int> ();
60 test_is_move_assignable<A> ();
61 test_is_move_assignable<bit_zero> ();
62 test_is_move_assignable<Union> ();
63 test_is_move_assignable<NotEmpty> ();
64 test_is_move_assignable<Empty> ();
66 #if TEST_STD_VER >= 11
67 test_is_not_move_assignable<const int> ();
68 test_is_not_move_assignable<int[]> ();
69 test_is_not_move_assignable<int[3]> ();
71 test_is_not_move_assignable<void> ();