Add test verification of trivially copyable

This commit is contained in:
Matt Borland
2024-08-06 13:32:38 -04:00
parent 320d8b7a9b
commit c2b11c1e91
2 changed files with 16 additions and 0 deletions

View File

@@ -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
View 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;
}