| 2380 | |
| 2381 | #ifndef CL_HPP_ENABLE_EXCEPTIONS |
| 2382 | static cl_program clCreateProgramWithSource_EmptySource( |
| 2383 | cl_context context, |
| 2384 | cl_uint count, |
| 2385 | const char** strings, |
| 2386 | const size_t* lengths, |
| 2387 | cl_int* errcode_ret, |
| 2388 | int num_calls) |
| 2389 | { |
| 2390 | (void) num_calls; |
| 2391 | |
| 2392 | TEST_ASSERT_EQUAL(context, make_context(1)); |
| 2393 | TEST_ASSERT_EQUAL(count, 0); |
| 2394 | TEST_ASSERT_EQUAL(strings, nullptr); |
| 2395 | TEST_ASSERT_EQUAL(lengths, nullptr); |
| 2396 | |
| 2397 | if (errcode_ret) { |
| 2398 | errcode_ret[0] = CL_INVALID_VALUE; |
| 2399 | } |
| 2400 | |
| 2401 | return nullptr; |
| 2402 | } |
| 2403 | #endif |
| 2404 | |
| 2405 | void testProgramCreateEmptySources(void) |
nothing calls this directly
no test coverage detected