[libc] Fix usage of std::nullptr_t in LibcTest.h. (#114321)

This commit is contained in:
lntue 2024-10-30 19:08:47 -04:00 committed by GitHub
parent 6ffefbbc25
commit a39fb30a49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,7 +165,7 @@ protected:
// 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,
bool test(TestCond Cond, ValType LHS, cpp::nullptr_t, const char *LHSStr,
const char *RHSStr, internal::Location Loc) {
return test(Cond, LHS, static_cast<ValType>(nullptr), LHSStr, RHSStr, Loc);
}