summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-03-04 10:23:11 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-03-04 10:23:11 +0000
commit23df81aabeb111d33a6e3c0c9a811198a2702823 (patch)
tree8f0a6dea2b7cc2160b8ce16f077ad12db0f0ad82
parentb35eacb0f0e134716dcb538e349a52cb2b449a90 (diff)
downloadbcm5719-llvm-23df81aabeb111d33a6e3c0c9a811198a2702823.tar.gz
bcm5719-llvm-23df81aabeb111d33a6e3c0c9a811198a2702823.zip
Split this test up into two smaller, and more focused tests.
llvm-svn: 151999
-rw-r--r--llvm/unittests/ADT/HashingTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/ADT/HashingTest.cpp b/llvm/unittests/ADT/HashingTest.cpp
index c89ca14a070..f00cac253f5 100644
--- a/llvm/unittests/ADT/HashingTest.cpp
+++ b/llvm/unittests/ADT/HashingTest.cpp
@@ -70,7 +70,9 @@ TEST(HashingTest, HashValueBasicTest) {
EXPECT_EQ(hash_value(c), hash_value('x'));
EXPECT_EQ(hash_value('4'), hash_value('0' + 4));
EXPECT_EQ(hash_value(addr), hash_value(&y));
+}
+TEST(HashingTest, HashValueStdPair) {
EXPECT_EQ(hash_combine(42, 43), hash_value(std::make_pair(42, 43)));
EXPECT_NE(hash_combine(43, 42), hash_value(std::make_pair(42, 43)));
EXPECT_NE(hash_combine(42, 43), hash_value(std::make_pair(42ull, 43ull)));
OpenPOWER on IntegriCloud