Merge branch 'ml/ubsan-bug' of https://github.com/mloskot/function into pr/mloskot-ubsan-test

This commit is contained in:
Peter Dimov
2018-10-23 03:13:20 +03:00
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,18 @@
import testing ;
variant ubsan_undefined
: release
:
<cxxflags>"-std=c++11 -Wno-unused -fstrict-aliasing -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined"
<linkflags>"-fsanitize=undefined"
<debug-symbols>on
<define>BOOST_USE_ASAN=1
;
project
: requirements
<include>$(BOOST_ROOT)
<library>/boost/test//boost_unit_test_framework
;
run test.cpp ;

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()