File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
libcxx/test/std/containers
associative/map/map.modifiers Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -291,8 +291,9 @@ void test_set_insert_range_exception_safety_throwing_copy() {
291291}
292292
293293template <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
354355template <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
You can’t perform that action at this time.
0 commit comments