diff --git a/cfg/boost.cfg b/cfg/boost.cfg
index ab08a2a2b..d5ca13684 100644
--- a/cfg/boost.cfg
+++ b/cfg/boost.cfg
@@ -96,6 +96,15 @@
+
+
+ false
+
+
+
+
+
+
diff --git a/test/cfg/boost.cpp b/test/cfg/boost.cpp
index cfb40dd7f..a83f7e604 100644
--- a/test/cfg/boost.cpp
+++ b/test/cfg/boost.cpp
@@ -10,6 +10,8 @@
#include
#include
#include
+#include
+#include
BOOST_FORCEINLINE void boost_forceinline_test()
@@ -24,7 +26,12 @@ BOOST_NORETURN void boost_noreturn_test()
{
}
-void valid_code()
+void print_hello()
+{
+ printf("hello");
+}
+
+void valid_code(boost::function &pf_print_hello)
{
if (BOOST_LIKELY(1)) {
}
@@ -33,6 +40,8 @@ void valid_code()
int int1 = 5;
boost::endian::endian_reverse_inplace(int1);
+ boost::bind(print_hello)();
+ pf_print_hello = boost::bind(print_hello);
}
void ignoredReturnValue(char * buf)