2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / tls-2.C
blob80275f9081c20e98be4166769c4df415b167e3a6
1 /* { dg-do compile } */
2 /* { dg-require-effective-target tls } */
4 extern char buf[];
5 #pragma omp threadprivate (buf) /* { dg-error "has incomplete type" } */
7 void
8 foo (void)
10   int i;
11 #pragma omp threadprivate (i) /* { dg-error "automatic variable" } */
12   i = 0;