| 2403 | #endif |
| 2404 | |
| 2405 | void testProgramCreateEmptySources(void) |
| 2406 | { |
| 2407 | #ifndef CL_HPP_ENABLE_EXCEPTIONS |
| 2408 | clCreateProgramWithSource_StubWithCallback(clCreateProgramWithSource_EmptySource); |
| 2409 | clReleaseContext_ExpectAndReturn(make_context(1), CL_SUCCESS); |
| 2410 | |
| 2411 | cl::Context context(make_context(1)); |
| 2412 | |
| 2413 | cl::Program::Sources sources; |
| 2414 | cl::Program program(context, sources); |
| 2415 | |
| 2416 | TEST_ASSERT_EQUAL(nullptr, program()); |
| 2417 | #endif |
| 2418 | } |
| 2419 | |
| 2420 | #ifndef CL_HPP_ENABLE_EXCEPTIONS |
| 2421 | static cl_program clCreateProgramWithBinary_EmptyBinaries( |
nothing calls this directly
no test coverage detected