-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25d3801
commit 6eaea5f
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
test/sources/libcxx/unord.set/extra/insert_range_ext.pass.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |