From: Dejan Mircevski Date: Tue, 13 Oct 2015 19:22:01 +0000 (-0400) Subject: Negative test for LinkageType. X-Git-Tag: upstream/2018.6~1511^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d0c8135476f4c5421d357dea9b268cf647c2286;p=platform%2Fupstream%2FSPIRV-Tools.git Negative test for LinkageType. --- diff --git a/test/TextToBinary.Annotation.cpp b/test/TextToBinary.Annotation.cpp index 9103ad2..0025886 100644 --- a/test/TextToBinary.Annotation.cpp +++ b/test/TextToBinary.Annotation.cpp @@ -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) {