[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / associative / set / insert_range.pass.cpp
blobe6c54d84d6e4037191391143ce67ab5fc2098492
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
10 // Some fields in the test case variables are deliberately not explicitly initialized, this silences a warning on GCC.
11 // ADDITIONAL_COMPILE_FLAGS(gcc-style-warnings): -Wno-missing-field-initializers
13 // <set>
15 // template<container-compatible-range<value_type> R>
16 // void insert_range(R&& rg); // C++23
18 #include <set>
20 #include "../../insert_range_maps_sets.h"
21 #include "test_macros.h"
23 int main(int, char**) {
24 for_all_iterators_and_allocators<int, const int*>([]<class Iter, class Sent, class Alloc>() {
25 test_map_set_insert_range<std::set<int, test_less<int>, Alloc>, int, Iter, Sent>();
26 });
28 static_assert(test_set_constraints_insert_range<std::set, int, double>());
30 test_set_insert_range_move_only<std::set>();
32 test_set_insert_range_exception_safety_throwing_copy<std::set>();
33 test_assoc_set_insert_range_exception_safety_throwing_allocator<std::set, int>();
35 return 0;