ADT: Unit test for ArrayRef::equals change in r215986

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-08-19 19:18:46 +00:00
parent bb69ce8c70
commit 7d84c8ec54

View File

@ -59,4 +59,8 @@ TEST(ArrayRefTest, Equals) {
EXPECT_FALSE(AR1b.equals(3, 4, 5, 6, 7)); EXPECT_FALSE(AR1b.equals(3, 4, 5, 6, 7));
} }
TEST(ArrayRefTest, EmptyEquals) {
EXPECT_TRUE(ArrayRef<unsigned>() == ArrayRef<unsigned>());
}
} // end anonymous namespace } // end anonymous namespace