mirror of
https://github.com/boostorg/atomic.git
synced 2026-02-03 08:42:08 +00:00
Fixed compilation with gcc 4.4. Optimized code for gcc older than 4.7 and also added support for 128-bit atomic ops. Completed transition to defaulted and deleted functions.
[SVN r84801]
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
// See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/atomic.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
#include <boost/test/minimal.hpp>
|
||||
@@ -33,6 +34,10 @@ int test_main(int, char *[])
|
||||
test_integral_api<boost::int64_t>();
|
||||
test_integral_api<long long>();
|
||||
test_integral_api<unsigned long long>();
|
||||
#if defined(BOOST_HAS_INT128)
|
||||
test_integral_api<boost::int128_type>();
|
||||
test_integral_api<boost::uint128_type>();
|
||||
#endif
|
||||
|
||||
test_constexpr_ctor<char>();
|
||||
test_constexpr_ctor<short>();
|
||||
@@ -48,6 +53,9 @@ int test_main(int, char *[])
|
||||
test_struct_api<test_struct<boost::uint16_t> >();
|
||||
test_struct_api<test_struct<boost::uint32_t> >();
|
||||
test_struct_api<test_struct<boost::uint64_t> >();
|
||||
#if defined(BOOST_HAS_INT128)
|
||||
test_struct_api<test_struct<boost::uint128_type> >();
|
||||
#endif
|
||||
|
||||
test_large_struct_api();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user