diff options
Diffstat (limited to 'test/allocator_op.test.cpp')
| -rw-r--r-- | test/allocator_op.test.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/allocator_op.test.cpp b/test/allocator_op.test.cpp index 925df8c..c079bd9 100644 --- a/test/allocator_op.test.cpp +++ b/test/allocator_op.test.cpp @@ -13,4 +13,6 @@ BOOST_AUTO_TEST_CASE(allocator_should_succeed) auto ptr = ocl::allocator<int>{}.construct_array<10>(); int* arr = ptr.get(); BOOST_TEST(arr != nullptr); + *arr = 10; + BOOST_TEST(*arr == 10); } |
