Skip to content

Conversation

@enh-google
Copy link
Contributor

No description provided.

@llvmbot llvmbot added the libc label Apr 30, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 30, 2025

@llvm/pr-subscribers-libc

Author: None (enh-google)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/137964.diff

1 Files Affected:

  • (modified) libc/test/src/search/lsearch_test.cpp (+4)
diff --git a/libc/test/src/search/lsearch_test.cpp b/libc/test/src/search/lsearch_test.cpp
index 9e58b87772c3b..864e3ecc21a08 100644
--- a/libc/test/src/search/lsearch_test.cpp
+++ b/libc/test/src/search/lsearch_test.cpp
@@ -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;

@lntue lntue changed the title lsearch_test.cpp: put helpers in anonymous namespace. [libc] lsearch_test.cpp: put helpers in anonymous namespace. Apr 30, 2025
@enh-google enh-google merged commit 0e9fb52 into llvm:main Apr 30, 2025
18 checks passed
@enh-google enh-google deleted the enh-google-patch-2 branch May 5, 2025 20:21
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants