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 //===----------------------------------------------------------------------===//
14 #include "test_macros.h"
16 TEST_CONSTEXPR_CXX20
bool test() {
17 using CRefT
= std::vector
<bool>::const_reference
;
18 #if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_ABI_BITSET_VECTOR_BOOL_CONST_SUBSCRIPT_RETURN_BOOL)
19 ASSERT_SAME_TYPE(CRefT
, bool);
21 ASSERT_SAME_TYPE(CRefT
, std::__bit_const_reference
<std::vector
<bool> >);
22 std::vector
<bool> vec
;
33 int main(int, char**) {
36 static_assert(test());