1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Fix pointer casting problem.

llvm-svn: 68668
This commit is contained in:
Nick Lewycky 2009-04-09 03:10:03 +00:00
parent 6479d0cbb7
commit c7edd80c95

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);