diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 00eda683..bed7f279 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -32,6 +32,8 @@ exe has_pthread_lib : config_info.cpp pthread ; explicit has_pthread_lib ; exe has_rt_lib : config_info.cpp rt ; explicit has_rt_lib ; +obj check_memory : check_memory.cpp ; +explicit check_memory ; test-suite config : @@ -65,6 +67,7 @@ test-suite config [ check-target-builds has_atomic_lib : atomic ] [ check-target-builds has_pthread_lib : pthread ] [ check-target-builds has_rt_lib : rt ] + [ check-target-builds check_memory : : no ] : config_test_no_rtti ] [ run config_test.cpp diff --git a/test/check_memory.cpp b/test/check_memory.cpp new file mode 100644 index 00000000..50324bac --- /dev/null +++ b/test/check_memory.cpp @@ -0,0 +1,11 @@ +// (C) Copyright John Maddock 2021. +// Use, modification and distribution are subject to 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) + +// +// Quick santity check that is OK. It was broken for some old gcc versions and -fno-rtti +// + +#include +