[libc++] Fix broken test in C++03 mode

This commit is contained in:
Louis Dionne 2023-09-11 21:13:26 -04:00
parent 798f2465f3
commit 1d7cec6adc
2 changed files with 2 additions and 2 deletions

View File

@ -88,13 +88,13 @@ TEST_CONSTEXPR_CXX20 void basic_test_cases() {
bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an));
test<std::vector<int, safe_allocator<int> > >(
random_access_iterator<const int*>(a), random_access_iterator<const int*>(an));
#endif
// Regression test for https://github.com/llvm/llvm-project/issues/46841
{
std::vector<int> v1({}, forward_iterator<const int*>{});
std::vector<int> v2(forward_iterator<const int*>{}, {});
}
#endif
}
TEST_CONSTEXPR_CXX20 void emplaceable_concept_tests() {

View File

@ -97,7 +97,6 @@ TEST_CONSTEXPR_CXX20 void basic_tests() {
random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc);
test<std::vector<int, safe_allocator<int> > >(a, an, alloc);
}
#endif
// Regression test for https://github.com/llvm/llvm-project/issues/46841
{
@ -105,6 +104,7 @@ TEST_CONSTEXPR_CXX20 void basic_tests() {
std::vector<int, min_allocator<int> > v1({}, forward_iterator<const int*>{}, alloc);
std::vector<int, min_allocator<int> > v2(forward_iterator<const int*>{}, {}, alloc);
}
#endif
}
TEST_CONSTEXPR_CXX20 void emplaceable_concept_tests() {