From 10fa49cd4b53f8c2dd137b70e047b3223af754a4 Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Tue, 13 Oct 2015 15:25:31 -0400 Subject: [PATCH] Negative test for AccessQualifier. --- test/TextToBinary.TypeDeclaration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/TextToBinary.TypeDeclaration.cpp b/test/TextToBinary.TypeDeclaration.cpp index 1fbfb15bb..d47866098 100644 --- a/test/TextToBinary.TypeDeclaration.cpp +++ b/test/TextToBinary.TypeDeclaration.cpp @@ -163,6 +163,11 @@ INSTANTIATE_TEST_CASE_P( #undef CASE // clang-format on +TEST_F(OpTypePipeTest, WrongAccessQualifier) { + EXPECT_THAT(CompileFailure("%1 = OpTypePipe xxyyzz"), + Eq("Invalid access qualifier 'xxyyzz'.")); +} + using OpTypeForwardPointerTest = spvtest::TextToBinaryTest; #define CASE(storage_class) \