Skip to content

Commit

Permalink
Update libcxx/vector
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Feb 5, 2025
1 parent c5362dc commit a42075c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ TEST_CONSTEXPR_CXX20 void tests() {
}
}
}
#if defined(LIBCXX_TEST_INTCAP_ARRAY) || (defined(TEST_CLANG) && __clang_major__ == 12)
if constexpr (!std::is_same_v<T, NonTriviallyRelocatable>)
#endif
{
using InnerVector = std::vector<T, Allocator<T> >;
using Vector = std::vector<InnerVector, Allocator<InnerVector> >;
Expand Down Expand Up @@ -143,13 +146,9 @@ TEST_CONSTEXPR_CXX20 void tests() {

TEST_CONSTEXPR_CXX20 bool tests() {
tests<std::allocator, int>();
#ifndef LIBCXX_TEST_INTCAP_ARRAY
tests<std::allocator, NonTriviallyRelocatable>();
#endif
tests<min_allocator, int>();
#ifndef LIBCXX_TEST_INTCAP_ARRAY
tests<min_allocator, NonTriviallyRelocatable>();
#endif
return true;
}

Expand Down

0 comments on commit a42075c

Please sign in to comment.