summaryrefslogtreecommitdiffhomepage
path: root/test/allocator_op.test.cpp
blob: fa2a0490528a75e82e1dc32685eb4b10a1efff7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// File: allocator.test.cpp
// Purpose; Allocator test for OCL.
/// @brief This unit test checks if the test succeeds.
/// @author Amlal El Mahrouss

#include <ocl/allocator_op.hpp>

#define BOOST_TEST_MODULE allocator_op
#include <boost/test/included/unit_test.hpp>

BOOST_AUTO_TEST_CASE( allocator_should_succeed )
{
    auto ptr = ocl::allocator<int>{}.construct_array<10>();
    int* arr = ptr.get();
    BOOST_TEST( arr != nullptr );
}