[clang] [compiler-rt] [safestack] Support statically linked executables (PR #190126)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 28 23:27:37 PDT 2026
================
@@ -0,0 +1,20 @@
+// RUN: %clang_safestack %s -pthread -static -o %t
+// RUN: %run %t
+
+// REQUIRES: linux || freebsd
+
+// Smoke test for pthread_create in a statically linked executable.
+
+#include <pthread.h>
+
+void *f(void *p)
----------------
MaskRay wrote:
llvm style prefers `{` on the previous line
https://github.com/llvm/llvm-project/pull/190126
More information about the cfe-commits
mailing list