projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d34b0b1
)
Update unittests for MDNode uniquing disable.
author
Daniel Dunbar
<daniel@zuster.org>
Mon, 7 Sep 2009 04:19:02 +0000
(
04:19
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Mon, 7 Sep 2009 04:19:02 +0000
(
04:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81142
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/VMCore/MetadataTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/VMCore/MetadataTest.cpp
b/unittests/VMCore/MetadataTest.cpp
index cdf5a6e6b90ede6608352bc11f5242f5370c9256..b92b068e259c64b28641c2c7cd40c1426a73cabd 100644
(file)
--- a/
unittests/VMCore/MetadataTest.cpp
+++ b/
unittests/VMCore/MetadataTest.cpp
@@
-85,7
+85,11
@@
TEST(MDNodeTest, Simple) {
MDNode *n2 = MDNode::get(Context, &c1, 1);
MDNode *n3 = MDNode::get(Context, &V[0], 3);
EXPECT_NE(n1, n2);
+#ifdef ENABLE_MDNODE_UNIQUING
EXPECT_EQ(n1, n3);
+#else
+ (void) n3;
+#endif
EXPECT_EQ(3u, n1->getNumElements());
EXPECT_EQ(s1, n1->getElement(0));