1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 #include <type_traits>
14 #include "test_macros.h"
17 void test_is_move_assignable()
19 static_assert(( std::is_move_assignable
<T
>::value
), "");
21 static_assert(( std::is_move_assignable_v
<T
>), "");
26 void test_is_not_move_assignable()
28 static_assert((!std::is_move_assignable
<T
>::value
), "");
30 static_assert((!std::is_move_assignable_v
<T
>), "");
58 test_is_move_assignable
<int> ();
59 test_is_move_assignable
<A
> ();
60 test_is_move_assignable
<bit_zero
> ();
61 test_is_move_assignable
<Union
> ();
62 test_is_move_assignable
<NotEmpty
> ();
63 test_is_move_assignable
<Empty
> ();
65 test_is_not_move_assignable
<const int> ();
66 test_is_not_move_assignable
<int[]> ();
67 test_is_not_move_assignable
<int[3]> ();
69 test_is_not_move_assignable
<void> ();