diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 18:24:20 +0000 |
commit | 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch) | |
tree | e5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/multiprecision/test/include_test | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/multiprecision/test/include_test')
6 files changed, 84 insertions, 0 deletions
diff --git a/src/boost/libs/multiprecision/test/include_test/cpp_bin_float_include_test.cpp b/src/boost/libs/multiprecision/test/include_test/cpp_bin_float_include_test.cpp new file mode 100644 index 00000000..90576600 --- /dev/null +++ b/src/boost/libs/multiprecision/test/include_test/cpp_bin_float_include_test.cpp @@ -0,0 +1,13 @@ +/////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +#include <boost/multiprecision/cpp_bin_float.hpp> + +using namespace boost::multiprecision; + +int main() +{ + cpp_bin_float<50> a; +} diff --git a/src/boost/libs/multiprecision/test/include_test/cpp_dec_float_include_test.cpp b/src/boost/libs/multiprecision/test/include_test/cpp_dec_float_include_test.cpp new file mode 100644 index 00000000..15f797f2 --- /dev/null +++ b/src/boost/libs/multiprecision/test/include_test/cpp_dec_float_include_test.cpp @@ -0,0 +1,13 @@ +/////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +#include <boost/multiprecision/cpp_dec_float.hpp> + +using namespace boost::multiprecision; + +int main() +{ + cpp_dec_float<50> a; +} diff --git a/src/boost/libs/multiprecision/test/include_test/cpp_int_include_test.cpp b/src/boost/libs/multiprecision/test/include_test/cpp_int_include_test.cpp new file mode 100644 index 00000000..306aa1c8 --- /dev/null +++ b/src/boost/libs/multiprecision/test/include_test/cpp_int_include_test.cpp @@ -0,0 +1,17 @@ +/////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +#include <boost/multiprecision/cpp_int.hpp> + +using namespace boost::multiprecision; + +int main() +{ + number<cpp_int_backend<> > a; + number<cpp_int_backend<>, et_off> b; + number<cpp_int_backend<64, 64, signed_magnitude, checked, void>, et_off> c; + number<cpp_int_backend<128, 128, signed_magnitude, checked, void>, et_off> d; + number<cpp_int_backend<500, 500, signed_magnitude, checked, void>, et_off> e; +} diff --git a/src/boost/libs/multiprecision/test/include_test/gmp_include_test.cpp b/src/boost/libs/multiprecision/test/include_test/gmp_include_test.cpp new file mode 100644 index 00000000..d2107d7a --- /dev/null +++ b/src/boost/libs/multiprecision/test/include_test/gmp_include_test.cpp @@ -0,0 +1,15 @@ +/////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +#include <boost/multiprecision/gmp.hpp> + +using namespace boost::multiprecision; + +int main() +{ + mpf_float a; + mpz_int b; + mpq_rational c; +} diff --git a/src/boost/libs/multiprecision/test/include_test/mpfr_include_test.cpp b/src/boost/libs/multiprecision/test/include_test/mpfr_include_test.cpp new file mode 100644 index 00000000..ab1ef32a --- /dev/null +++ b/src/boost/libs/multiprecision/test/include_test/mpfr_include_test.cpp @@ -0,0 +1,13 @@ +/////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +#include <boost/multiprecision/mpfr.hpp> + +using namespace boost::multiprecision; + +int main() +{ + mpfr_float a; +} diff --git a/src/boost/libs/multiprecision/test/include_test/tommath_include_test.cpp b/src/boost/libs/multiprecision/test/include_test/tommath_include_test.cpp new file mode 100644 index 00000000..5242444f --- /dev/null +++ b/src/boost/libs/multiprecision/test/include_test/tommath_include_test.cpp @@ -0,0 +1,13 @@ +/////////////////////////////////////////////////////////////// +// Copyright 2012 John Maddock. Distributed under the Boost +// Software License, Version 1.0. (See accompanying file +// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt + +#include <boost/multiprecision/tommath.hpp> + +using namespace boost::multiprecision; + +int main() +{ + tom_int a; +} |