From 1d7cec6adc67d03d55ae75f1f37ffbd844437c74 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 11 Sep 2023 21:13:26 -0400 Subject: [PATCH] [libc++] Fix broken test in C++03 mode --- .../sequences/vector/vector.cons/construct_iter_iter.pass.cpp | 2 +- .../vector/vector.cons/construct_iter_iter_alloc.pass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp index 204165c0c4d5..3a66bac344c8 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp @@ -88,13 +88,13 @@ TEST_CONSTEXPR_CXX20 void basic_test_cases() { bidirectional_iterator(a), bidirectional_iterator(an)); test > >( random_access_iterator(a), random_access_iterator(an)); -#endif // Regression test for https://github.com/llvm/llvm-project/issues/46841 { std::vector v1({}, forward_iterator{}); std::vector v2(forward_iterator{}, {}); } +#endif } TEST_CONSTEXPR_CXX20 void emplaceable_concept_tests() { diff --git a/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp index 4414d2f239d0..42fb5f7c054b 100644 --- a/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp @@ -97,7 +97,6 @@ TEST_CONSTEXPR_CXX20 void basic_tests() { random_access_iterator(a), random_access_iterator(an), alloc); test > >(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 > v1({}, forward_iterator{}, alloc); std::vector > v2(forward_iterator{}, {}, alloc); } +#endif } TEST_CONSTEXPR_CXX20 void emplaceable_concept_tests() {