Negative test for AccessQualifier.
authorDejan Mircevski <deki@google.com>
Tue, 13 Oct 2015 19:25:31 +0000 (15:25 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
test/TextToBinary.TypeDeclaration.cpp

index 1fbfb15..d478660 100644 (file)
@@ -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)                                               \