diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index ee0dd56..d77f074 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -263,13 +263,6 @@ TEST(span_test, from_pointer_pointer_construction) // EXPECT_DEATH(workaround_macro(), expected); //} - // this will fail the std::distance() precondition, which asserts on MSVC debug builds - //{ // this test fails on gcc 13, clang 16, clang 17, xcode 15.4, vs 16 - // int* p = nullptr; - // auto workaround_macro = [&]() { span s{&arr[0], p}; }; - // EXPECT_DEATH(workaround_macro(), expected); - //} - { int* p = nullptr; span s{p, p}; @@ -283,14 +276,6 @@ TEST(span_test, from_pointer_pointer_construction) EXPECT_TRUE(s.size() == 0); EXPECT_TRUE(s.data() == nullptr); } - - // this will fail the std::distance() precondition, which asserts on MSVC debug builds - //{ // this test fails on gcc 13/14, clang 16/17/18, xcode 15.4, vs 16 - // int* p = nullptr; - // auto workaround_macro = [&]() { span s{&arr[0], p}; }; - // span s{&arr[0], p}; - // EXPECT_DEATH(workaround_macro(), expected); - //} } template