// File: allocator.test.cpp // Purpose; Allocator test for OCL. /// @brief This unit test checks if the test succeeds. /// @author Amlal El Mahrouss #include #define BOOST_TEST_MODULE allocator_op #include BOOST_AUTO_TEST_CASE( allocator_should_succeed ) { auto ptr = ocl::allocator{}.construct_array<10>(); int* arr = ptr.get(); BOOST_TEST( arr != nullptr ); }