diff options
Diffstat (limited to 'libc/test/src/string/memchr_test.cpp')
| -rw-r--r-- | libc/test/src/string/memchr_test.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libc/test/src/string/memchr_test.cpp b/libc/test/src/string/memchr_test.cpp index 4a7c88bfe6e1..ede841118fe0 100644 --- a/libc/test/src/string/memchr_test.cpp +++ b/libc/test/src/string/memchr_test.cpp @@ -6,11 +6,15 @@ // //===----------------------------------------------------------------------===// -#include "hdr/signal_macros.h" #include "src/string/memchr.h" -#include "test/UnitTest/Test.h" + #include <stddef.h> +#include "hdr/signal_macros.h" +#include "test/UnitTest/Test.h" + +namespace { + // A helper function that calls memchr and abstracts away the explicit cast for // readability purposes. const char *call_memchr(const void *src, int c, size_t size) { @@ -130,3 +134,5 @@ TEST(LlvmLibcMemChrTest, CrashOnNullPtr) { } #endif // defined(LIBC_ADD_NULL_CHECKS) + +} // namespace |
