forked from OSchip/llvm-project
GSYMTest::TestLineTable - check all LT1+LT2 comparisons.
PVS Studio was warning about "LT2 < LT2" but really we should be testing all permutations of LT1 and LT2.
This commit is contained in:
parent
5ccad89f50
commit
004eb2c862
|
@ -853,7 +853,9 @@ TEST(GSYMTest, TestLineTable) {
|
||||||
// Test that two empty line tables are equal and neither are less than
|
// Test that two empty line tables are equal and neither are less than
|
||||||
// each other.
|
// each other.
|
||||||
ASSERT_EQ(LT1, LT2);
|
ASSERT_EQ(LT1, LT2);
|
||||||
|
ASSERT_FALSE(LT1 < LT1);
|
||||||
ASSERT_FALSE(LT1 < LT2);
|
ASSERT_FALSE(LT1 < LT2);
|
||||||
|
ASSERT_FALSE(LT2 < LT1);
|
||||||
ASSERT_FALSE(LT2 < LT2);
|
ASSERT_FALSE(LT2 < LT2);
|
||||||
|
|
||||||
// Test that a line table with less number of line entries is less than a
|
// Test that a line table with less number of line entries is less than a
|
||||||
|
|
Loading…
Reference in New Issue