1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Update unittests for MDNode uniquing disable.

llvm-svn: 81142
This commit is contained in:
Daniel Dunbar 2009-09-07 04:19:02 +00:00
parent b258ff7cee
commit 603f919e21

View File

@ -85,7 +85,11 @@ TEST(MDNodeTest, Simple) {
MDNode *n2 = MDNode::get(Context, &c1, 1); MDNode *n2 = MDNode::get(Context, &c1, 1);
MDNode *n3 = MDNode::get(Context, &V[0], 3); MDNode *n3 = MDNode::get(Context, &V[0], 3);
EXPECT_NE(n1, n2); EXPECT_NE(n1, n2);
#ifdef ENABLE_MDNODE_UNIQUING
EXPECT_EQ(n1, n3); EXPECT_EQ(n1, n3);
#else
(void) n3;
#endif
EXPECT_EQ(3u, n1->getNumElements()); EXPECT_EQ(3u, n1->getNumElements());
EXPECT_EQ(s1, n1->getElement(0)); EXPECT_EQ(s1, n1->getElement(0));