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 //===----------------------------------------------------------------------===//
11 // reference& operator=(const reference&)
17 #include "test_macros.h"
19 TEST_CONSTEXPR_CXX20
bool test() {
20 std::vector
<bool> vec
;
21 typedef std::vector
<bool>::reference Ref
;
46 ref1
= std::move(ref2
);
53 ref1
= std::move(ref2
);
61 ref1
= static_cast<const Ref
&>(ref2
);
68 ref1
= static_cast<const Ref
&>(ref2
);
75 int main(int, char**) {
78 static_assert(test());