mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-13 09:50:06 +00:00
Negative test for Dim.
This commit is contained in:
parent
52ff534040
commit
2fd3792c3a
@ -68,6 +68,11 @@ INSTANTIATE_TEST_CASE_P(
|
||||
#undef CASE
|
||||
// clang-format on
|
||||
|
||||
TEST_F(DimTest, WrongDim) {
|
||||
EXPECT_THAT(CompileFailure("%i = OpTypeImage %t xxyyzz 1 2 3 4 R8"),
|
||||
Eq("Invalid dimensionality 'xxyyzz'."));
|
||||
}
|
||||
|
||||
// Test ImageFormat enums via OpTypeImage
|
||||
|
||||
using ImageFormatTest = spvtest::TextToBinaryTestBase<
|
||||
|
Loading…
Reference in New Issue
Block a user