]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/compute/test/test_pinned_allocator.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / compute / test / test_pinned_allocator.cpp
1 //---------------------------------------------------------------------------//
2 // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
3 //
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8 // See http://boostorg.github.com/compute for more information.
9 //---------------------------------------------------------------------------//
10
11 #define BOOST_TEST_MODULE TestPinnedAllocator
12 #include <boost/test/unit_test.hpp>
13
14 #include <boost/compute/allocator/pinned_allocator.hpp>
15 #include <boost/compute/container/vector.hpp>
16
17 #include "context_setup.hpp"
18
19 namespace compute = boost::compute;
20
21 BOOST_AUTO_TEST_CASE(vector_with_pinned_allocator)
22 {
23 compute::vector<int, compute::pinned_allocator<int> > vector(context);
24 vector.push_back(12, queue);
25 }
26
27 BOOST_AUTO_TEST_SUITE_END()