Negative test for LinkageType.

This commit is contained in:
Dejan Mircevski 2015-10-13 15:22:01 -04:00 committed by David Neto
parent d7b0f83bd1
commit 9d0c813547

View File

@ -311,6 +311,11 @@ INSTANTIATE_TEST_CASE_P(TextToBinaryDecorateLinkage, OpDecorateLinkageTest,
#undef CASE
// clang-format on
TEST_F(OpDecorateLinkageTest, WrongType) {
EXPECT_THAT(CompileFailure("OpDecorate %1 LinkageAttributes \"foo\" xxyyzz"),
Eq("Invalid linkage type 'xxyyzz'."));
}
// Test OpGroupMemberDecorate
TEST_F(TextToBinaryTest, GroupMemberDecorateGoodOneTarget) {