[libc] lsearch_test.cpp: put helpers in anonymous namespace. (#137964)
This commit is contained in:
parent
8836bce842
commit
0e9fb5202c
@ -9,10 +9,14 @@
|
||||
#include "src/search/lsearch.h"
|
||||
#include "test/UnitTest/Test.h"
|
||||
|
||||
namespace {
|
||||
|
||||
int compar(const void *a, const void *b) {
|
||||
return *reinterpret_cast<const int *>(a) != *reinterpret_cast<const int *>(b);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
TEST(LlvmLibcLsearchTest, SearchHead) {
|
||||
int list[3] = {1, 2, 3};
|
||||
size_t len = 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user