blob: 24e28c9575c77d3e4a99fa21168b627788732a99 [file] [log] [blame]
/* Invalid __thread specifiers. */
/* { dg-require-effective-target tls } */
__thread typedef int g4; /* { dg-error "1:multiple storage classes" } */
void foo()
{
__thread auto int l2; /* { dg-error "3:multiple storage classes|data types" } */
__thread register int l4; /* { dg-error "3:multiple storage classes" } */
} /* { dg-error "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } .-1 } */