Skip to content

Commit 70b1d47

Browse files
committed
Add tests to cover odd sizes
1 parent 03028d1 commit 70b1d47

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

libcxx/include/__bit_reference

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,6 @@ private:
870870
template <class _Dp, bool _IC>
871871
_LIBCPP_CONSTEXPR_SINCE_CXX20 friend __bit_iterator<_Dp, false> __copy_backward_unaligned(
872872
__bit_iterator<_Dp, _IC> __first, __bit_iterator<_Dp, _IC> __last, __bit_iterator<_Dp, false> __result);
873-
// Note: dependent nested name specifier __copy_backward_impl<_AlgPolicy>::operator() for friend declaration
874-
// is not supported in clang. Thus, we use a friend declaration for the entire class.
875873
template <class _AlgPolicy>
876874
friend struct __copy_backward_impl;
877875
template <class _Cl, class _Cr>

libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/copy_backward.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ TEST_CONSTEXPR_CXX20 bool test() {
115115

116116
{ // Test vector<bool>::iterator optimization
117117
assert(test_vector_bool(8));
118-
assert(test_vector_bool(16));
118+
assert(test_vector_bool(19));
119119
assert(test_vector_bool(32));
120+
assert(test_vector_bool(49));
120121
assert(test_vector_bool(64));
122+
assert(test_vector_bool(199));
121123
assert(test_vector_bool(256));
122124
}
123125

libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/ranges.copy_backward.pass.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,11 @@ constexpr bool test() {
348348
#if TEST_STD_VER >= 23
349349
{ // Test vector<bool>::iterator optimization
350350
assert(test_vector_bool(8));
351-
assert(test_vector_bool(16));
351+
assert(test_vector_bool(19));
352352
assert(test_vector_bool(32));
353+
assert(test_vector_bool(49));
353354
assert(test_vector_bool(64));
355+
assert(test_vector_bool(199));
354356
assert(test_vector_bool(256));
355357
}
356358
#endif

0 commit comments

Comments
 (0)