1 // Copyright (c) 2020 Andrey Semashev
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/atomic/ipc_atomic_ref.hpp>
8
9 #include <boost/config.hpp>
10 #include <boost/cstdint.hpp>
11
12 #include "api_test_helpers.hpp"
13
main(int,char * [])14 int main(int, char *[])
15 {
16 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::uint8_t >();
17 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::int8_t >();
18
19 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::uint16_t >();
20 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::int16_t >();
21
22 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::uint32_t >();
23 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::int32_t >();
24
25 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::uint64_t >();
26 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::int64_t >();
27
28 #if defined(BOOST_HAS_INT128) && !defined(BOOST_ATOMIC_TESTS_NO_INT128)
29 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::int128_type >();
30 test_lock_free_integral_api< ipc_atomic_ref_wrapper, boost::uint128_type >();
31 #endif
32
33 #if !defined(BOOST_ATOMIC_NO_FLOATING_POINT)
34 test_lock_free_floating_point_api< ipc_atomic_ref_wrapper, float >();
35 test_lock_free_floating_point_api< ipc_atomic_ref_wrapper, double >();
36 test_lock_free_floating_point_api< ipc_atomic_ref_wrapper, long double >();
37 #if defined(BOOST_HAS_FLOAT128) && !defined(BOOST_ATOMIC_TESTS_NO_FLOAT128)
38 test_lock_free_floating_point_api< ipc_atomic_ref_wrapper, boost::float128_type >();
39 #endif
40 #endif
41
42 test_lock_free_pointer_api< ipc_atomic_ref_wrapper, int >();
43
44 test_lock_free_enum_api< ipc_atomic_ref_wrapper >();
45
46 return boost::report_errors();
47 }
48