From 0fadae78d338afc1a35ca93312eae3ecf13f0114 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 25 Sep 2019 12:49:05 +0200 Subject: [PATCH] boost.cfg: Add configuration and tests for boost::bind() (#2206) --- cfg/boost.cfg | 9 +++++++++ test/cfg/boost.cpp | 11 ++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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)