Skip to content

Commit f5594f6

Browse files
enh-googleIanWood1
authored andcommitted
[libc] lfind_test.cpp: put helpers in an anonymous namespace. (llvm#137821)
This matches other tests and allows the tests to be built together (as Android is doing).
1 parent 24c1cf4 commit f5594f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libc/test/src/search/lfind_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
#include "src/search/lfind.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(LlvmLibcLfindTest, SearchHead) {
1721
int list[3] = {1, 2, 3};
1822
size_t len = 3;

0 commit comments

Comments
 (0)