MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CLHPP / testSetProgramReleaseCallback

Function testSetProgramReleaseCallback

tests/test_openclhpp.cpp:3672–3685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3670#endif
3671
3672void testSetProgramReleaseCallback(void)
3673{
3674#if CL_HPP_TARGET_OPENCL_VERSION >= 220
3675 cl_program program = make_program(0);
3676 int user_data = 0;
3677
3678 clSetProgramReleaseCallback_StubWithCallback(clSetProgramReleaseCallback_set);
3679 clReleaseProgram_ExpectAndReturn(program, CL_SUCCESS);
3680
3681 cl::Program prog(program);
3682
3683 prog.setReleaseCallback(test_program_release_callback, &user_data);
3684#endif
3685}
3686
3687void testSetProgramSpecializationConstantScalar(void)
3688{

Callers

nothing calls this directly

Calls 1

make_programFunction · 0.85

Tested by

no test coverage detected