Skip to content

Commit 0e9fb52

Browse files
authored
[libc] lsearch_test.cpp: put helpers in anonymous namespace. (#137964)
1 parent 8836bce commit 0e9fb52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/test/src/search/lsearch_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
#include "src/search/lsearch.h"
1010
#include "test/UnitTest/Test.h"
1111

12+
namespace {
13+
1214
int compar(const void *a, const void *b) {
1315
return *reinterpret_cast<const int *>(a) != *reinterpret_cast<const int *>(b);
1416
}
1517

18+
} // namespace
19+
1620
TEST(LlvmLibcLsearchTest, SearchHead) {
1721
int list[3] = {1, 2, 3};
1822
size_t len = 3;

0 commit comments

Comments
 (0)