[clang] [clang][nfc] Guard thread_local in clang/test/CXX/drs/cwg7xx.cpp (PR #197930)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Fri May 15 07:53:08 PDT 2026


zmodem wrote:

Repro steps on (arm64) mac:

```
$ cmake -Bbuild.tmp -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=Native -DLLVM_DEFAULT_TARGET_TRIPLE=arm64-apple-darwin llvm/
$ ninja -C build.tmp check-clang
...
FAIL: Clang :: CXX/drs/cwg7xx.cpp (2644 of 24579)
******************** TEST 'Clang :: CXX/drs/cwg7xx.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/Users/hwennborg/llvm-project/build.tmp/bin/clang -cc1 -internal-isystem /Users/hwennborg/llvm-project/build.tmp/lib/clang/23/include -nostdsysteminc -triple arm64-apple-darwin-unknown -std=c++98 /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98,cxx98-14,cxx98-11
# executed command: /Users/hwennborg/llvm-project/build.tmp/bin/clang -cc1 -internal-isystem /Users/hwennborg/llvm-project/build.tmp/lib/clang/23/include -nostdsysteminc -triple arm64-apple-darwin-unknown -std=c++98 /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98,cxx98-14,cxx98-11
# RUN: at line 2
/Users/hwennborg/llvm-project/build.tmp/bin/clang -cc1 -internal-isystem /Users/hwennborg/llvm-project/build.tmp/lib/clang/23/include -nostdsysteminc -triple arm64-apple-darwin-unknown -std=c++11 /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98-14,cxx98-11,since-cxx11
# executed command: /Users/hwennborg/llvm-project/build.tmp/bin/clang -cc1 -internal-isystem /Users/hwennborg/llvm-project/build.tmp/lib/clang/23/include -nostdsysteminc -triple arm64-apple-darwin-unknown -std=c++11 /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp -fexceptions -fcxx-exceptions -pedantic-errors -verify-directives -verify=expected,cxx98-14,cxx98-11,since-cxx11
# .---command stderr------------
# | error: diagnostics with 'error' severity seen but not expected: 
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 105: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 106: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 109: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 110: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 116: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 117: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 120: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 121: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 126: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 127: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 132: thread-local storage is not supported for the current target
# |   File /Users/hwennborg/llvm-project/clang/test/CXX/drs/cwg7xx.cpp Line 133: thread-local storage is not supported for the current target
# | 12 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
********************
Failed Tests (1):
  Clang :: CXX/drs/cwg7xx.cpp
```

---



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


More information about the cfe-commits mailing list