mirror of
https://github.com/microsoft/GSL.git
synced 2025-04-01 08:56:29 -04:00
comment test 1
This commit is contained in:
parent
8124d30046
commit
e60f0ea138
@ -257,8 +257,7 @@ TEST(span_test, from_pointer_pointer_construction)
|
||||
EXPECT_TRUE(s.data() == &arr[0]);
|
||||
}
|
||||
|
||||
// this will fail the std::distance() precondition, which asserts on MSVC debug builds
|
||||
//{ // this test succeeds on all platforms, but it relies on UB
|
||||
//{ // this test succeeds on all platforms, gsl::span is more relaxed than std::span where this would be UB
|
||||
// auto workaround_macro = [&]() { span<int> s{&arr[1], &arr[0]}; };
|
||||
// EXPECT_DEATH(workaround_macro(), expected);
|
||||
//}
|
||||
|
Loading…
x
Reference in New Issue
Block a user