[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / aix-attr-tls_model.c
blob7c2047bced93917c1687a116854db9b45879e9bb
1 // RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-cpu pwr8 -verify -fsyntax-only %s
2 // RUN: %clang_cc1 -triple powerpc-unknown-aix -target-cpu pwr8 -verify -fsyntax-only %s
4 #if !__has_attribute(tls_model)
5 #error "Should support tls_model attribute"
6 #endif
8 static __thread int y __attribute((tls_model("global-dynamic"))); // no-warning
9 static __thread int y __attribute((tls_model("local-dynamic"))); // expected-no-diagnostics
10 static __thread int y __attribute((tls_model("initial-exec"))); // no-warning
11 static __thread int y __attribute((tls_model("local-exec"))); // no-warning