Negative test for Decoration.
authorDejan Mircevski <deki@google.com>
Tue, 13 Oct 2015 19:35:49 +0000 (15:35 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
test/TextToBinary.Annotation.cpp

index 320ba40..89fe2ef 100644 (file)
@@ -106,6 +106,11 @@ INSTANTIATE_TEST_CASE_P(
     }));
 #undef CASE
 
+TEST_F(OpDecorateSimpleTest, WrongDecoration) {
+  EXPECT_THAT(CompileFailure("OpDecorate %1 xxyyzz"),
+              Eq("Invalid decoration 'xxyyzz'."));
+}
+
 // A single test case for an enum decoration.
 struct DecorateEnumCase {
   // Place the enum value first, so it's easier to read the binary dumps when