mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Negative test for AddressingModel, MemoryModel.
This commit is contained in:
parent
2d6796d45d
commit
865034263d
@ -86,6 +86,13 @@ INSTANTIATE_TEST_CASE_P(TextToBinaryMemoryModel, OpMemoryModelTest,
|
|||||||
#undef CASE
|
#undef CASE
|
||||||
// clang-format on
|
// 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
|
// Test OpEntryPoint
|
||||||
|
|
||||||
// An example case for OpEntryPoint
|
// An example case for OpEntryPoint
|
||||||
|
Loading…
Reference in New Issue
Block a user