aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/ArrayRefTest.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 19:18:46 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 19:18:46 +0000
commit349f6982acc7d23af74c09314da70f06d1b61da3 (patch)
treefe6f64eecedb4a4668cee4cf36b53830d26e6140 /llvm/unittests/ADT/ArrayRefTest.cpp
parent909620a33d9161b0324071c24a2e4f7c1c9488bc (diff)
downloadllvm-349f6982acc7d23af74c09314da70f06d1b61da3.zip
llvm-349f6982acc7d23af74c09314da70f06d1b61da3.tar.gz
llvm-349f6982acc7d23af74c09314da70f06d1b61da3.tar.bz2
ADT: Unit test for ArrayRef::equals change in r215986
llvm-svn: 216008
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
-rw-r--r--llvm/unittests/ADT/ArrayRefTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/ArrayRefTest.cpp b/llvm/unittests/ADT/ArrayRefTest.cpp
index 83a012d..a25f932 100644
--- a/llvm/unittests/ADT/ArrayRefTest.cpp
+++ b/llvm/unittests/ADT/ArrayRefTest.cpp
@@ -59,4 +59,8 @@ TEST(ArrayRefTest, Equals) {
EXPECT_FALSE(AR1b.equals(3, 4, 5, 6, 7));
}
+TEST(ArrayRefTest, EmptyEquals) {
+ EXPECT_TRUE(ArrayRef<unsigned>() == ArrayRef<unsigned>());
+}
+
} // end anonymous namespace