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:
8386c57
)
Negative test for LoopControl.
author
Dejan Mircevski
<deki@google.com>
Tue, 13 Oct 2015 19:53:46 +0000
(15:53 -0400)
committer
David Neto
<dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000
(12:55 -0400)
test/TextToBinary.ControlFlow.cpp
patch
|
blob
|
history
diff --git
a/test/TextToBinary.ControlFlow.cpp
b/test/TextToBinary.ControlFlow.cpp
index
bfcd781
..
2c2ccda
100644
(file)
--- a/
test/TextToBinary.ControlFlow.cpp
+++ b/
test/TextToBinary.ControlFlow.cpp
@@
-107,6
+107,12
@@
TEST_F(OpLoopMergeTest, CombinedLoopControlMask) {
EXPECT_THAT(CompiledInstructions(input),
Eq(MakeInstruction(spv::OpLoopMerge, {1, 2, expected_mask})));
}
+
+TEST_F(OpLoopMergeTest, WrongLoopControl) {
+ EXPECT_THAT(CompileFailure("OpLoopMerge %m %c none"),
+ Eq("Invalid loop control 'none'."));
+}
+
// Test OpSwitch
TEST_F(TextToBinaryTest, SwitchGoodZeroTargets) {