Small ChangeLog tweak.
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / tls-1.c
blob9dc102e7e61db44454bca6484931faf94b5c50c9
1 // { dg-do compile }
2 // { dg-require-effective-target tls }
4 int tp1;
5 static int tp2;
6 extern int tp3;
8 int tp4 = 1;
9 static int tp5 = 1;
11 #pragma omp threadprivate (tp1, tp2, tp3, tp4, tp5)
13 #pragma omp threadprivate (undef) // { dg-error "undeclared" }
15 int tp6;
16 int foo(void) { return tp6; }
18 #pragma omp threadprivate (tp6) // { dg-error "after first use" }