summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/tls-2.c
blob: 80275f9081c20e98be4166769c4df415b167e3a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-require-effective-target tls } */

extern char buf[];
#pragma omp threadprivate (buf)	/* { dg-error "has incomplete type" } */

void
foo (void)
{
  int i;
#pragma omp threadprivate (i) /* { dg-error "automatic variable" } */
  i = 0;
}