diff --git a/tests/std/tests/P0083R3_splicing_maps_and_sets/test.cpp b/tests/std/tests/P0083R3_splicing_maps_and_sets/test.cpp index 1b0acb023b5..89f2514cc4c 100644 --- a/tests/std/tests/P0083R3_splicing_maps_and_sets/test.cpp +++ b/tests/std/tests/P0083R3_splicing_maps_and_sets/test.cpp @@ -154,6 +154,7 @@ void test_node_handle(NodeHandle& nh1, NodeHandle& nh2, Validator1 v1, Validator static_assert(std::is_nothrow_default_constructible_v); CHECK_EMPTY(NodeHandle{}); #if defined(__cpp_constinit) +#pragma warning(suppress : 4640) // C4640 emitted by MSVC because 'NodeHandle' type has non-trivial dtor { static constinit NodeHandle static_handle{}; } #elif defined(__clang__) { [[clang::require_constant_initialization]] static NodeHandle static_handle{}; }