| 2446 | #endif |
| 2447 | |
| 2448 | void testProgramCreateEmptyBinaries(void) |
| 2449 | { |
| 2450 | #ifndef CL_HPP_ENABLE_EXCEPTIONS |
| 2451 | clCreateProgramWithBinary_StubWithCallback(clCreateProgramWithBinary_EmptyBinaries); |
| 2452 | clReleaseContext_ExpectAndReturn(make_context(1), CL_SUCCESS); |
| 2453 | |
| 2454 | cl::Context context(make_context(1)); |
| 2455 | |
| 2456 | cl::vector<cl::Device> devices; |
| 2457 | cl::Program::Binaries binaries; |
| 2458 | cl::Program program(context, devices, binaries); |
| 2459 | |
| 2460 | TEST_ASSERT_EQUAL(nullptr, program()); |
| 2461 | #endif |
| 2462 | } |
| 2463 | |
| 2464 | #if CL_HPP_TARGET_OPENCL_VERSION >= 120 |
| 2465 | #ifndef CL_HPP_ENABLE_EXCEPTIONS |
nothing calls this directly
no test coverage detected