[libc-commits] [libc] [libc] fix behavior of strrchr(x, '\0') (PR #112620)
via libc-commits
libc-commits at lists.llvm.org
Wed Oct 30 15:57:06 PDT 2024
================
@@ -162,6 +162,14 @@ class Test {
(unsigned long long)RHS, LHSStr, RHSStr, Loc);
}
+ // Helper to allow macro invocations like `ASSERT_EQ(foo, nullptr)`.
+ template <typename ValType,
+ cpp::enable_if_t<cpp::is_pointer_v<ValType>, ValType> = nullptr>
+ bool test(TestCond Cond, ValType LHS, std::nullptr_t, const char *LHSStr,
----------------
lntue wrote:
pull/114321 should fix it
https://github.com/llvm/llvm-project/pull/112620
More information about the libc-commits
mailing list