aboutsummaryrefslogtreecommitdiff
path: root/unittests/VMCore/MetadataTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/VMCore/MetadataTest.cpp')
-rw-r--r--unittests/VMCore/MetadataTest.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/unittests/VMCore/MetadataTest.cpp b/unittests/VMCore/MetadataTest.cpp
index c92bb139b4..732719ec5c 100644
--- a/unittests/VMCore/MetadataTest.cpp
+++ b/unittests/VMCore/MetadataTest.cpp
@@ -101,25 +101,6 @@ TEST(MDNodeTest, Simple) {
oss2.str().c_str());
}
-TEST(MDNodeTest, RAUW) {
- Constant *C = getGlobalContext().getConstantInt(Type::Int32Ty, 1);
- Instruction *I = new BitCastInst(C, Type::Int32Ty);
-
- Value *const V1 = I;
- MDNode *n1 = getGlobalContext().getMDNode(&V1, 1);
- WeakVH wn1 = n1;
-
- Value *const V2 = C;
- MDNode *n2 = getGlobalContext().getMDNode(&V2, 1);
- WeakVH wn2 = n2;
-
- EXPECT_NE(wn1, wn2);
-
- I->replaceAllUsesWith(C);
-
- EXPECT_EQ(wn1, wn2);
-}
-
TEST(MDNodeTest, Delete) {
Constant *C = getGlobalContext().getConstantInt(Type::Int32Ty, 1);
Instruction *I = new BitCastInst(C, Type::Int32Ty);