diff --git a/libcxx/test/std/concepts/callable/invocable.compile.pass.cpp b/libcxx/test/std/concepts/callable/invocable.compile.pass.cpp --- a/libcxx/test/std/concepts/callable/invocable.compile.pass.cpp +++ b/libcxx/test/std/concepts/callable/invocable.compile.pass.cpp @@ -20,13 +20,15 @@ #include "functions.h" +// clang-format off template -requires std::invocable constexpr void -ModelsInvocable(F, Args&&...) noexcept{}; +requires std::invocable +constexpr void ModelsInvocable(F, Args&&...) noexcept{} template -requires(!std::invocable) constexpr - void NotInvocable(F, Args&&...) noexcept {} +requires(!std::invocable) +constexpr void NotInvocable(F, Args&&...) noexcept {} +// clang-format on static_assert(!std::invocable); static_assert(!std::invocable); 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**) { {