mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
add back capture variable for comparison in span_test
This commit is contained in:
parent
ff5f7973a2
commit
45f016d96f
@ -1103,11 +1103,11 @@ TEST(span_test, from_array_constructor)
|
|||||||
span<int> s = a;
|
span<int> s = a;
|
||||||
span<int> s2 = b;
|
span<int> s2 = b;
|
||||||
#if (__cplusplus > 201402L)
|
#if (__cplusplus > 201402L)
|
||||||
EXPECT_DEATH([[maybe_unused]] s.begin() == s2.begin(), deathstring);
|
EXPECT_DEATH([[maybe_unused]] bool _ = (s.begin() == s2.begin()), deathstring);
|
||||||
EXPECT_DEATH([[maybe_unused]] s.begin() <= s2.begin(), deathstring);
|
EXPECT_DEATH([[maybe_unused]] bool _ = (s.begin() <= s2.begin()), deathstring);
|
||||||
#else
|
#else
|
||||||
EXPECT_DEATH(s.begin() == s2.begin(), deathstring);
|
EXPECT_DEATH(bool _ = (s.begin() == s2.begin()), deathstring);
|
||||||
EXPECT_DEATH(s.begin() <= s2.begin(), deathstring);
|
EXPECT_DEATH(bool _ = (s.begin() <= s2.begin()), deathstring);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user