mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-03 09:21:02 +00:00
don't unittest mdnode printing, we have disassembler tests for this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdb3356477
commit
ab2f2f1ace
@ -99,17 +99,6 @@ TEST(MDNodeTest, Simple) {
|
||||
|
||||
EXPECT_EQ(1u, n2->getNumOperands());
|
||||
EXPECT_EQ(n1, n2->getOperand(0));
|
||||
|
||||
std::string Str;
|
||||
raw_string_ostream oss(Str);
|
||||
n1->print(oss);
|
||||
EXPECT_STREQ("!0 = metadata !{metadata !\"abc\", i8 0, metadata !\"123\"}\n",
|
||||
oss.str().c_str());
|
||||
Str.clear();
|
||||
n2->print(oss);
|
||||
EXPECT_STREQ("!0 = metadata !{metadata !1}\n"
|
||||
"!1 = metadata !{metadata !\"abc\", i8 0, metadata !\"123\"}\n",
|
||||
oss.str().c_str());
|
||||
}
|
||||
|
||||
TEST(MDNodeTest, Delete) {
|
||||
@ -123,11 +112,6 @@ TEST(MDNodeTest, Delete) {
|
||||
EXPECT_EQ(n, wvh);
|
||||
|
||||
delete I;
|
||||
|
||||
std::string Str;
|
||||
raw_string_ostream oss(Str);
|
||||
wvh->print(oss);
|
||||
EXPECT_STREQ("!0 = metadata !{null}\n", oss.str().c_str());
|
||||
}
|
||||
|
||||
TEST(NamedMDNodeTest, Search) {
|
||||
@ -147,8 +131,7 @@ TEST(NamedMDNodeTest, Search) {
|
||||
std::string Str;
|
||||
raw_string_ostream oss(Str);
|
||||
NMD->print(oss);
|
||||
EXPECT_STREQ("!llvm.NMD1 = !{!0, !1}\n!0 = metadata !{i32 1}\n"
|
||||
"!1 = metadata !{i32 2}\n",
|
||||
EXPECT_STREQ("!llvm.NMD1 = !{!0, !1}\n",
|
||||
oss.str().c_str());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user