https://github.com/zmodem created 
https://github.com/llvm/llvm-project/pull/197930

On targets which don't support `thread_local`, such as 
`arm64-apple-darwin-unknown`, the test would fail with a bunch of `thread-local 
storage is not supported for the current target` messages. Follow-up to #197732

>From d75f8b502a171e6fd1b7d0656dc6f30c9b18a9f6 Mon Sep 17 00:00:00 2001
From: Hans Wennborg <[email protected]>
Date: Fri, 15 May 2026 15:13:10 +0200
Subject: [PATCH] cwg7xx.cpp fix

---
 clang/test/CXX/drs/cwg7xx.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/CXX/drs/cwg7xx.cpp b/clang/test/CXX/drs/cwg7xx.cpp
index 83ea88157ef27..36f176f9a4ed5 100644
--- a/clang/test/CXX/drs/cwg7xx.cpp
+++ b/clang/test/CXX/drs/cwg7xx.cpp
@@ -100,7 +100,7 @@ static_assert(!is_volatile<void()volatile&>::value, "");
 } // namespace cwg713
 
 namespace cwg717 { // cwg717: 3.3
-#if __cplusplus >= 201103L
+#if __cplusplus >= 201103L && __has_feature(cxx_thread_local)
 void f() {
   thread_local extern int i;
   thread_local extern int& j;

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to