captureing result of iterator comparisons to address -Wunused-comparison

This commit is contained in:
Jordan Maples [MSFT] 2020-02-05 13:59:48 -08:00
parent 5cf1610cfe
commit 432be4852c

View File

@ -1102,8 +1102,8 @@ TEST(span_test, from_array_constructor)
{
span<int> s = a;
span<int> s2 = b;
EXPECT_DEATH(s.begin() == s2.begin(), deathstring);
EXPECT_DEATH(s.begin() <= s2.begin(), deathstring);
EXPECT_DEATH(bool _ = (s.begin() == s2.begin()), deathstring);
EXPECT_DEATH(bool _ = (s.begin() <= s2.begin()), deathstring);
}
}