mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-24 00:40:14 +00:00
Negative test for BuiltIn.
This commit is contained in:
parent
10fa49cd4b
commit
d7b0f83bd1
@ -1353,7 +1353,7 @@ const char* spvOperandTypeStr(spv_operand_type_t type) {
|
||||
case SPV_OPERAND_TYPE_DECORATION:
|
||||
return "decoration";
|
||||
case SPV_OPERAND_TYPE_BUILT_IN:
|
||||
return "built in";
|
||||
return "built-in";
|
||||
case SPV_OPERAND_TYPE_SELECTION_CONTROL:
|
||||
return "selection control";
|
||||
case SPV_OPERAND_TYPE_LOOP_CONTROL:
|
||||
|
@ -186,6 +186,11 @@ INSTANTIATE_TEST_CASE_P(TextToBinaryDecorateBuiltIn, OpDecorateEnumTest,
|
||||
#undef CASE
|
||||
// clang-format on
|
||||
|
||||
TEST_F(OpDecorateEnumTest, WrongBuiltIn) {
|
||||
EXPECT_THAT(CompileFailure("OpDecorate %1 BuiltIn xxyyzz"),
|
||||
Eq("Invalid built-in 'xxyyzz'."));
|
||||
}
|
||||
|
||||
// Test OpDecorate FuncParamAttr
|
||||
// clang-format off
|
||||
#define CASE(NAME) \
|
||||
|
Loading…
Reference in New Issue
Block a user