[PATCH] D145158: Make clang/test/C/C2x/n2934.c compatible with targets that do not support thread_local storage.

Fanbo Meng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 06:28:47 PST 2023


fanbo-meng created this revision.
Herald added a project: All.
fanbo-meng requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145158

Files:
  clang/test/C/C2x/n2934.c


Index: clang/test/C/C2x/n2934.c
===================================================================
--- clang/test/C/C2x/n2934.c
+++ clang/test/C/C2x/n2934.c
@@ -7,6 +7,7 @@
 
 thread_local struct alignas(int) S { // c2x-warning {{'alignas' is incompatible with C standards before C2x}} \
                                         c2x-warning {{'thread_local' is incompatible with C standards before C2x}} \
+                                        c2x-error 0+ {{thread-local storage is not supported for the current target}} \
                                         c17-error {{unknown type name 'thread_local'}} \
                                         c17-error {{expected identifier or '('}} \
                                         c17-error {{expected ')'}} \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145158.501847.patch
Type: text/x-patch
Size: 772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230302/39f65ae7/attachment.bin>


More information about the cfe-commits mailing list