Negative test for AddressingModel, MemoryModel.

This commit is contained in:
Dejan Mircevski 2015-10-09 14:21:03 -04:00 committed by David Neto
parent 2d6796d45d
commit 865034263d

View File

@ -86,6 +86,13 @@ INSTANTIATE_TEST_CASE_P(TextToBinaryMemoryModel, OpMemoryModelTest,
#undef CASE
// clang-format on
TEST_F(OpMemoryModelTest, WrongModel) {
EXPECT_THAT(CompileFailure("OpMemoryModel xxyyzz Simple"),
Eq("Invalid addressing model 'xxyyzz'."));
EXPECT_THAT(CompileFailure("OpMemoryModel Logical xxyyzz"),
Eq("Invalid memory model 'xxyyzz'."));
}
// Test OpEntryPoint
// An example case for OpEntryPoint