aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tls/diag-6.c
blob: 71b0b95244ed9518c953b52394ca1ccacb306011 (plain)
1
2
3
4
5
6
7
8
/* Invalid tls_model attributes.  PR 35435.  */
/* { dg-require-effective-target tls } */

int v __attribute__((tls_model("initial-exec"))); /* { dg-warning "attribute ignored" } */
typedef int X __attribute__((tls_model("initial-exec"))); /* { dg-warning "attribute ignored" } */
void f(int x __attribute__((tls_model("initial-exec")))); /* { dg-warning "attribute ignored" } */
__thread int a __attribute__((tls_model(1))); /* { dg-error "tls_model argument not a string" } */
__thread int b __attribute__((tls_model("unknown"))); /* { dg-error "tls_model argument must be one of" } */