diff --git a/test/function_test.cpp b/test/function_test.cpp index 02a60ce..cce4365 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -629,6 +629,17 @@ test_ref() } } +#if BOOST_WORKAROUND(BOOST_GCC, >= 70000 && BOOST_GCC < 80000) && __cplusplus >= 201700 + +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81311 +#pragma message("Skipping test_empty_ref on g++ 7 -std=c++17") + +static void test_empty_ref() +{ +} + +#else + static void dummy() {} static void test_empty_ref() @@ -652,6 +663,8 @@ static void test_empty_ref() } } +#endif + static void test_exception() {