[libcxx-commits] [libcxx] 9029744 - [libcxx] Add missing header to re/re.alg/re.alg.search/grep.pass.cpp (#180024)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 7 05:20:45 PST 2026


Author: Jonathan Wakely
Date: 2026-02-07T14:20:40+01:00
New Revision: 9029744432a708b7203e707970dacf2734f3ca21

URL: https://github.com/llvm/llvm-project/commit/9029744432a708b7203e707970dacf2734f3ca21
DIFF: https://github.com/llvm/llvm-project/commit/9029744432a708b7203e707970dacf2734f3ca21.diff

LOG: [libcxx] Add missing header to re/re.alg/re.alg.search/grep.pass.cpp (#180024)

This test can't be compiled with GCC without this fix.

Added: 
    

Modified: 
    libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
index 3569ad53ee60b..a7a6e243c9838 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/grep.pass.cpp
@@ -16,6 +16,7 @@
 //                  regex_constants::match_flag_type flags = regex_constants::match_default);
 
 #include <regex>
+#include <cstring>
 #include <cassert>
 
 #include "test_macros.h"
@@ -24,7 +25,7 @@
 extern "C" void LLVMFuzzerTestOneInput(const char *data)
 {
 #ifndef TEST_HAS_NO_EXCEPTIONS
-    std::size_t size = strlen(data);
+    std::size_t size = std::strlen(data);
     if (size > 0)
     {
         try


        


More information about the libcxx-commits mailing list