Add tests for BOOST_NO_CXX11_ALIGNOF

This commit is contained in:
Peter Dimov
2022-11-21 19:32:43 +02:00
parent 8c6226cafd
commit 3ecedc9602
6 changed files with 108 additions and 0 deletions
+10
View File
@@ -122,6 +122,11 @@ namespace boost_no_cxx11_addressof = empty_boost;
#else
namespace boost_no_cxx11_alignas = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_ALIGNOF
#include "boost_no_cxx11_alignof.ipp"
#else
namespace boost_no_cxx11_alignof = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_ALLOCATOR
#include "boost_no_cxx11_allocator.ipp"
#else
@@ -1436,6 +1441,11 @@ int main( int, char *[] )
std::cerr << "Failed test for BOOST_NO_CXX11_ALIGNAS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_alignof::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_ALIGNOF at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_allocator::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_ALLOCATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;