diff --git a/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp b/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp index 63d3c9b0d..a543fffed 100644 --- a/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp +++ b/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/bind_return_type.pass.cpp @@ -24,6 +24,8 @@ #include #include +#include "test_macros.h" + int dummy = 42; int return_value(int) { return dummy; } @@ -81,10 +83,10 @@ void do_test(Fn* func) { // Check that the call operator SFINAE's away when too few arguments // are provided but is well-formed otherwise. { - static_assert(!CheckCall(), ""); + LIBCPP_STATIC_ASSERT(!CheckCall(), ""); static_assert(CheckCall(), ""); static_assert(CheckCall(), ""); - static_assert(!CheckCall(), ""); + LIBCPP_STATIC_ASSERT(!CheckCall(), ""); static_assert(CheckCall(), ""); static_assert(CheckCall(), ""); } @@ -108,7 +110,7 @@ void do_test_r(Fn* func) { // Check that the call operator SFINAE's away when too few arguments // are provided but is well-formed otherwise. { - static_assert(!CheckCall(), ""); + LIBCPP_STATIC_ASSERT(!CheckCall(), ""); static_assert(CheckCall(), ""); static_assert(CheckCall(), ""); }