llvm.org GIT mirror llvm / 21d60d5
Split this test up into two smaller, and more focused tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151999 91177308-0d34-0410-b5e6-96231b3b80d8 Chandler Carruth 8 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6969 EXPECT_EQ(hash_value(c), hash_value('x'));
7070 EXPECT_EQ(hash_value('4'), hash_value('0' + 4));
7171 EXPECT_EQ(hash_value(addr), hash_value(&y));
72
72 }
73
74 TEST(HashingTest, HashValueStdPair) {
7375 EXPECT_EQ(hash_combine(42, 43), hash_value(std::make_pair(42, 43)));
7476 EXPECT_NE(hash_combine(43, 42), hash_value(std::make_pair(42, 43)));
7577 EXPECT_NE(hash_combine(42, 43), hash_value(std::make_pair(42ull, 43ull)));