#undef CASE
// clang-format on
-TEST_F(TextToBinaryTest, CombinedFunctionControlMask) {
+TEST_F(OpFunctionControlTest, CombinedFunctionControlMask) {
// Sample a single combination. This ensures we've integrated
// the instruction parsing logic with spvTextParseMask.
const std::string input =
Eq(MakeInstruction(spv::OpFunction, {1, 2, expected_mask, 3})));
}
+TEST_F(OpFunctionControlTest, WrongFunctionControl) {
+ EXPECT_THAT(CompileFailure("%r = OpFunction %t Inline|Unroll %ft"),
+ Eq("Invalid function control 'Inline|Unroll'."));
+}
+
// TODO(dneto): OpFunctionParameter
// TODO(dneto): OpFunctionEnd
// TODO(dneto): OpFunctionCall