Checks safety of destroying a validly constructed binary.
| 31 | |
| 32 | // Checks safety of destroying a validly constructed binary. |
| 33 | TEST_F(BinaryDestroySomething, Default) { |
| 34 | // Use a binary object constructed by the API instead of rolling our own. |
| 35 | SetText("OpSource OpenCL_C 120"); |
| 36 | spv_binary my_binary = nullptr; |
| 37 | ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str, |
| 38 | text.length, &my_binary, &diagnostic)); |
| 39 | ASSERT_NE(nullptr, my_binary); |
| 40 | spvBinaryDestroy(my_binary); |
| 41 | } |
| 42 | |
| 43 | } // namespace |
| 44 | } // namespace spvtools |
nothing calls this directly
no test coverage detected