Skip to content

Commit

Permalink
Update libcxx/unord.set
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Oct 19, 2024
1 parent 25d3801 commit 6eaea5f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/sources/libcxx/UnorderedSetTests.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ LIBCXX_TEST_BEGIN(common_iterator_difference_type)
#include "unord.set/common/iterator_difference_type.pass.cpp"
LIBCXX_TEST_END

#if TEST_STD_VER >= 23
LIBCXX_TEST_BEGIN(extra_insert_range_ext)
#include "unord.set/extra/insert_range_ext.pass.cpp"
LIBCXX_TEST_END
#endif

#ifdef LIBCXX_TEST_FAILURE

LIBCXX_TEST_BEGIN(spec_assert_bucket)
Expand Down
28 changes: 28 additions & 0 deletions test/sources/libcxx/unord.set/extra/insert_range_ext.pass.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Modified for https://github.com/morzhovets/momo project.
//
//===----------------------------------------------------------------------===//

// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// Some fields in the test case variables are deliberately not explicitly initialized, this silences a warning on GCC.
// ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings): -Wno-missing-field-initializers

// <set>

// template<container-compatible-range<value_type> R>
// void insert_range(R&& rg); // C++23

int main(int, char**) {
for_all_iterators_and_allocators<int, const int*>([]<class Iter, class Sent, class Alloc>() {
test_map_set_insert_range<std::unordered_set<int64_t, test_hash<int64_t>, test_equal_to<int64_t>, Alloc>, int, Iter, Sent>();
});

return 0;
}

0 comments on commit 6eaea5f

Please sign in to comment.