================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -std=c23 -fobjc-arc -verify %s
+
+typedef struct {
+ id a;
+} S;
+
+void test1(void) {
+ (void)(thread_local static __unsafe_unretained id){0};
+ (void)(thread_local static id){0}; // expected-error {{thread-local variable
has non-trivial ownership: type is '__strong id'}}
----------------
ahatanak wrote:
Could you test `(void)(thread_local static Class){0}` too (no diagnostics
expected)?
https://github.com/llvm/llvm-project/pull/212559
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits