[libc-commits] [libc] [libc] fix behavior of strrchr(x, '\0') (PR #112620)
George Burgess IV via libc-commits
libc-commits at lists.llvm.org
Wed Oct 30 16:14:42 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,
----------------
gburgessiv wrote:
Thanks for helping with this forward fix, and apologies for the breakage :)
https://github.com/llvm/llvm-project/pull/112620
More information about the libc-commits
mailing list