std::string memory_name;
};
-using OpMemoryModelTest = spvtest::TextToBinaryTestBase<
- ::testing::TestWithParam<MemoryModelCase>>;
+using OpMemoryModelTest =
+ spvtest::TextToBinaryTestBase<::testing::TestWithParam<MemoryModelCase>>;
TEST_P(OpMemoryModelTest, AnyMemoryModelCase) {
std::string input = "OpMemoryModel " + GetParam().addressing_name + " " +
std::string entry_point_name;
};
-using OpEntryPointTest = spvtest::TextToBinaryTestBase<
- ::testing::TestWithParam<EntryPointCase>>;
+using OpEntryPointTest =
+ spvtest::TextToBinaryTestBase<::testing::TestWithParam<EntryPointCase>>;
TEST_P(OpEntryPointTest, AnyEntryPointCase) {
// TODO(dneto): utf-8, escaping, quoting cases for entry point name.
#undef CASE
// clang-format on
+TEST_F(OpEntryPointTest, WrongModel) {
+ EXPECT_THAT(CompileFailure("OpEntryPoint xxyyzz %1 \"fun\""),
+ Eq("Invalid execution model 'xxyyzz'."));
+}
+
// Test OpExecutionMode
using OpExecutionModeTest = spvtest::TextToBinaryTestBase<