diff --git a/libcxx/test/std/concepts/callable/regularinvocable.compile.pass.cpp b/libcxx/test/std/concepts/callable/regularinvocable.compile.pass.cpp --- a/libcxx/test/std/concepts/callable/regularinvocable.compile.pass.cpp +++ b/libcxx/test/std/concepts/callable/regularinvocable.compile.pass.cpp @@ -19,19 +19,21 @@ #include "functions.h" +// clang-format off template -requires std::invocable constexpr void -ModelsRegularInvocable(F, Args&&...) noexcept{}; +requires std::regular_invocable +constexpr void ModelsRegularInvocable(F, Args&&...) noexcept {} template -requires(!std::invocable) constexpr - void NotRegularInvocable(F, Args&&...) noexcept {} +requires (!std::regular_invocable) +constexpr void NotRegularInvocable(F, Args&&...) noexcept {} +// clang-format on -static_assert(!std::invocable); -static_assert(!std::invocable); -static_assert(!std::invocable); -static_assert(!std::invocable); -static_assert(!std::invocable); +static_assert(!std::regular_invocable); +static_assert(!std::regular_invocable); +static_assert(!std::regular_invocable); +static_assert(!std::regular_invocable); +static_assert(!std::regular_invocable); int main(int, char**) { {