| 35 | using OpMemoryBarrier = spvtest::TextToBinaryTest; |
| 36 | |
| 37 | TEST_F(OpMemoryBarrier, Good) { |
| 38 | const std::string input = "OpMemoryBarrier %1 %2\n"; |
| 39 | EXPECT_THAT(CompiledInstructions(input), |
| 40 | Eq(MakeInstruction(spv::Op::OpMemoryBarrier, {1, 2}))); |
| 41 | EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input)); |
| 42 | } |
| 43 | |
| 44 | TEST_F(OpMemoryBarrier, BadMissingScopeId) { |
| 45 | const std::string input = "OpMemoryBarrier\n"; |
nothing calls this directly
no test coverage detected