Negative test for AccessQualifier.

This commit is contained in:
Dejan Mircevski 2015-10-13 15:25:31 -04:00 committed by David Neto
parent 212ba355a6
commit 10fa49cd4b

View File

@ -163,6 +163,11 @@ INSTANTIATE_TEST_CASE_P(
#undef CASE #undef CASE
// clang-format on // clang-format on
TEST_F(OpTypePipeTest, WrongAccessQualifier) {
EXPECT_THAT(CompileFailure("%1 = OpTypePipe xxyyzz"),
Eq("Invalid access qualifier 'xxyyzz'."));
}
using OpTypeForwardPointerTest = spvtest::TextToBinaryTest; using OpTypeForwardPointerTest = spvtest::TextToBinaryTest;
#define CASE(storage_class) \ #define CASE(storage_class) \