Fix pointer casting problem.

llvm-svn: 68668
This commit is contained in:
Nick Lewycky 2009-04-09 03:10:03 +00:00
parent e6db8ca5eb
commit 8b4db2da2b
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ TEST(MDNodeTest, Everything) {
V.push_back(s2);
MDNode *n1 = MDNode::get(&V[0], 3);
MDNode *n2 = MDNode::get((Constant**)&n1, 1);
Constant *const c1 = n1;
MDNode *n2 = MDNode::get(&c1, 1);
MDNode *n3 = MDNode::get(&V[0], 3);
EXPECT_NE(n1, n2);
EXPECT_EQ(n1, n3);