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:
c0eb225
)
Negative test for Decoration.
author
Dejan Mircevski
<deki@google.com>
Tue, 13 Oct 2015 19:35:49 +0000
(15:35 -0400)
committer
David Neto
<dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000
(12:55 -0400)
test/TextToBinary.Annotation.cpp
patch
|
blob
|
history
diff --git
a/test/TextToBinary.Annotation.cpp
b/test/TextToBinary.Annotation.cpp
index
320ba40
..
89fe2ef
100644
(file)
--- a/
test/TextToBinary.Annotation.cpp
+++ b/
test/TextToBinary.Annotation.cpp
@@
-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