Skip to content

Commit

Permalink
[libc] Fix usage of std::nullptr_t in LibcTest.h. (#114321)
Browse files Browse the repository at this point in the history
  • Loading branch information
lntue authored Oct 30, 2024
1 parent 6ffefbb commit a39fb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/test/UnitTest/LibcTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Test {
// 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);
}
Expand Down

0 comments on commit a39fb30

Please sign in to comment.