summaryrefslogtreecommitdiff
path: root/third-party/benchmark/cmake/posix_regex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third-party/benchmark/cmake/posix_regex.cpp')
-rw-r--r--third-party/benchmark/cmake/posix_regex.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/third-party/benchmark/cmake/posix_regex.cpp b/third-party/benchmark/cmake/posix_regex.cpp
deleted file mode 100644
index 466dc62560a2..000000000000
--- a/third-party/benchmark/cmake/posix_regex.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-#include <regex.h>
-#include <string>
-int main() {
- std::string str = "test0159";
- regex_t re;
- int ec = regcomp(&re, "^[a-z]+[0-9]+$", REG_EXTENDED | REG_NOSUB);
- if (ec != 0) {
- return ec;
- }
- int ret = regexec(&re, str.c_str(), 0, nullptr, 0) ? -1 : 0;
- regfree(&re);
- return ret;
-}
-