Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / gcc / testsuite / gcc.dg / tls / diag-6.c
blob71b0b95244ed9518c953b52394ca1ccacb306011
1 /* Invalid tls_model attributes. PR 35435. */
2 /* { dg-require-effective-target tls } */
4 int v __attribute__((tls_model("initial-exec"))); /* { dg-warning "attribute ignored" } */
5 typedef int X __attribute__((tls_model("initial-exec"))); /* { dg-warning "attribute ignored" } */
6 void f(int x __attribute__((tls_model("initial-exec")))); /* { dg-warning "attribute ignored" } */
7 __thread int a __attribute__((tls_model(1))); /* { dg-error "tls_model argument not a string" } */
8 __thread int b __attribute__((tls_model("unknown"))); /* { dg-error "tls_model argument must be one of" } */