projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d6796d
)
Negative test for AddressingModel, MemoryModel.
author
Dejan Mircevski
<deki@google.com>
Fri, 9 Oct 2015 18:21:03 +0000
(14:21 -0400)
committer
David Neto
<dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000
(12:55 -0400)
test/TextToBinary.ModeSetting.cpp
patch
|
blob
|
history
diff --git
a/test/TextToBinary.ModeSetting.cpp
b/test/TextToBinary.ModeSetting.cpp
index
6f26b3e
..
955ab31
100644
(file)
--- a/
test/TextToBinary.ModeSetting.cpp
+++ b/
test/TextToBinary.ModeSetting.cpp
@@
-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