brintos

brintos / llvm-project-archived public Read only

0
0
Text · 591 B · 7c2047b Raw
12 lines · c
1// RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-cpu pwr8 -verify -fsyntax-only %s2// RUN: %clang_cc1 -triple powerpc-unknown-aix -target-cpu pwr8 -verify -fsyntax-only %s3 4#if !__has_attribute(tls_model)5#error "Should support tls_model attribute"6#endif7 8static __thread int y __attribute((tls_model("global-dynamic"))); // no-warning9static __thread int y __attribute((tls_model("local-dynamic"))); // expected-no-diagnostics10static __thread int y __attribute((tls_model("initial-exec"))); // no-warning11static __thread int y __attribute((tls_model("local-exec"))); // no-warning12