[libcxx-commits] [libcxx] [libcxx][c++26] 2937R0: Freestanding: Remove strtok (PR #146290)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jun 29 19:59:42 PDT 2025
================
@@ -0,0 +1,14 @@
+// UNSUPPORTED: libcpp-has-no-cstring
+// REQUIRES: freestanding
+// XFAIL: *
+
+// RUN: %clang %s -c -o /dev/null -ffreestanding --std=c++2c 2>&1 | FileCheck %s
+
+#include <cstring>
+
+int main() {
----------------
frederick-vs-ja wrote:
I wonder whether this really works as `main` is only expected to be the entry in hosted environments.
Moreover, I think it's worthwhile to test all other freestanding functions in `<cstring>`/`<string.h>` together. Feature-test macro `__cpp_lib_freestanding_cstring` covers them.
https://github.com/llvm/llvm-project/pull/146290
More information about the libcxx-commits
mailing list