summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tls/diag-4.C
blob: 55e985e9261da7029b5b23d7f5284ea4bf117e5f (plain)
1
2
3
4
5
6
7
8
9
10
/* Invalid __thread specifiers.  */
/* { dg-require-effective-target tls } */

__thread typedef int g4;	/* { dg-error "multiple storage classes" } */

void foo()
{
  __thread auto int l2;		/* { dg-error "multiple storage classes" } */
  __thread register int l4;	/* { dg-error "multiple storage classes" } */
}