Compare commits

...

3 Commits

Author SHA1 Message Date
a5d878092c Rename test, add to test/Jamfile 2018-10-23 03:22:54 +03:00
5f50a7a50a Merge branch 'ml/ubsan-bug' of https://github.com/mloskot/function into pr/mloskot-ubsan-test 2018-10-23 03:13:20 +03:00
d6b017c263 Add minimal test for UBSan failures
Reproduced with clang 5.0 and 6.0 on Linux using Boost super-project at
master as well as Function at develop:

cd libs/function/test/ubsan_undefined_bug
b2 toolset=clang variant=ubsan_undefined
2018-10-22 19:50:17 +02:00
2 changed files with 13 additions and 0 deletions

View File

@ -36,3 +36,5 @@ run nothrow_swap.cpp ;
run rvalues_test.cpp ;
compile function_typeof_test.cpp ;
run result_arg_types_test.cpp ;
run boost_test_ubsan.cpp /boost/test//boost_unit_test_framework ;

11
test/boost_test_ubsan.cpp Normal file
View File

@ -0,0 +1,11 @@
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE( ubsan_tests )
BOOST_AUTO_TEST_CASE( test1 )
{
BOOST_CHECK(true);
}
BOOST_AUTO_TEST_SUITE_END()