Negative test for ImageOperands.

This commit is contained in:
Dejan Mircevski 2015-10-13 14:47:22 -04:00 committed by David Neto
parent 2fd3792c3a
commit 63af6fd409

View File

@ -107,6 +107,11 @@ INSTANTIATE_TEST_CASE_P(
5, 6, 7, 8, 9, 10, 11, 12}}}));
#undef MASK
TEST_F(ImageOperandsTest, WrongOperand) {
EXPECT_THAT(CompileFailure("%r = OpImageFetch %t %i %c xxyyzz"),
Eq("Invalid image operand 'xxyyzz'."));
}
// TODO(dneto): OpSampledImage
// TODO(dneto): OpImageSampleImplicitLod
// TODO(dneto): OpImageSampleExplicitLod