Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / g++.dg / tls / diag-4.C
blob6fb9215a668eb6718c7940554d65d0d45cb08496
1 /* Invalid __thread specifiers.  */
2 /* { dg-require-effective-target tls_native } */
4 __thread typedef int g4;        /* { dg-error "multiple storage classes" } */
6 void foo()
8   __thread auto int l2;         /* { dg-error "multiple storage classes" } */
9   __thread register int l4;     /* { dg-error "multiple storage classes" } */