Skip to content

Commit 1d4eed8

Browse files
Refactor libcxx/test/std/containers/associative/map/map.modifiers/insert_range.pass.cpp
1 parent 9147482 commit 1d4eed8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

libcxx/test/std/containers/associative/map/map.modifiers/insert_range.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ TEST_CONSTEXPR_CXX26 bool test() {
3434

3535
test_map_insert_range_move_only<std::map>();
3636

37-
#ifndef TEST_IS_CONSTANT_EVALUATED
3837
test_map_insert_range_exception_safety_throwing_copy<std::map>();
3938
test_assoc_map_insert_range_exception_safety_throwing_allocator<std::map, int, int>();
40-
#endif
4139
return true;
4240
}
4341

libcxx/test/std/containers/insert_range_maps_sets.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,9 @@ void test_set_insert_range_exception_safety_throwing_copy() {
291291
}
292292

293293
template <template <class...> class Container>
294-
void test_map_insert_range_exception_safety_throwing_copy() {
295-
#if !defined(TEST_HAS_NO_EXCEPTIONS)
294+
TEST_CONSTEXPR_CXX26 void test_map_insert_range_exception_safety_throwing_copy() {
295+
296+
#if !defined(TEST_HAS_NO_EXCEPTIONS) && !defined(TEST_IS_CONSTANT_EVALUATED)
296297
using K = int;
297298
using V = ThrowingCopy<3>;
298299

@@ -352,8 +353,8 @@ void test_unord_set_insert_range_exception_safety_throwing_allocator() {
352353
}
353354

354355
template <template <class...> class Container, class K, class V>
355-
void test_assoc_map_insert_range_exception_safety_throwing_allocator() {
356-
#if !defined(TEST_HAS_NO_EXCEPTIONS)
356+
TEST_CONSTEXPR_CXX26 void test_assoc_map_insert_range_exception_safety_throwing_allocator() {
357+
#if !defined(TEST_HAS_NO_EXCEPTIONS) && !defined(TEST_IS_CONSTANT_EVALUATED)
357358
using ValueType = std::pair<const K, V>;
358359
ValueType in[] = {ValueType{K{1}, V{1}}};
359360

0 commit comments

Comments
 (0)