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

Function testMoveAssignDeviceNull

tests/test_openclhpp.cpp:1215–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1213}
1214
1215void 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
1232void testMoveConstructDeviceNonNull(void)
1233{

Callers

nothing calls this directly

Calls 1

make_device_idFunction · 0.85

Tested by

no test coverage detected