| 1213 | } |
| 1214 | |
| 1215 | void testMoveAssignDeviceNull(void) |
| 1216 | { |
| 1217 | #ifdef TEST_RVALUE_REFERENCES |
| 1218 | clGetDeviceInfo_StubWithCallback(clGetDeviceInfo_platform); |
| 1219 | clGetPlatformInfo_StubWithCallback(clGetPlatformInfo_version_1_2); |
| 1220 | |
| 1221 | cl::Device trg; |
| 1222 | cl::Device src(make_device_id(1)); |
| 1223 | trg = std::move(src); |
| 1224 | TEST_ASSERT_EQUAL_PTR(make_device_id(1), trg()); |
| 1225 | TEST_ASSERT_NULL(src()); |
| 1226 | |
| 1227 | // Prevent destructor from interfering with the test |
| 1228 | trg() = nullptr; |
| 1229 | #endif |
| 1230 | } |
| 1231 | |
| 1232 | void testMoveConstructDeviceNonNull(void) |
| 1233 | { |
nothing calls this directly
no test coverage detected