mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-01-19 04:22:11 +00:00
Add test verification of trivially copyable
This commit is contained in:
@@ -1243,6 +1243,7 @@ test-suite misc :
|
||||
[ compile git_issue_608.cpp ]
|
||||
[ run git_issue_624.cpp ]
|
||||
[ run git_issue_626.cpp ]
|
||||
[ run git_issue_636.cpp : : : [ check-target-builds ../config//has_float128 : <source>quadmath : <build>no ] ]
|
||||
[ compile git_issue_98.cpp :
|
||||
[ check-target-builds ../config//has_float128 : <define>TEST_FLOAT128 <source>quadmath : ]
|
||||
[ check-target-builds ../config//has_gmp : <define>TEST_GMP <source>gmp : ]
|
||||
|
||||
15
test/git_issue_636.cpp
Normal file
15
test/git_issue_636.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2024 Matt Borland. Distributed under the Boost
|
||||
// Software License, Version 1.0. (See accompanying file
|
||||
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
// See: https://github.com/boostorg/multiprecision/issues/635
|
||||
|
||||
#include <boost/multiprecision/float128.hpp>
|
||||
#include <type_traits>
|
||||
|
||||
int main()
|
||||
{
|
||||
static_assert(std::is_trivially_copyable<boost::multiprecision::float128>::value, "Should be trivial now");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user