3 ! { dg-require-effective-target tls_native }
4 ! { dg-options "-fopenmp" }
6 integer, save :: thr1
, thr2
8 common /thrs
/ thr3
, thr4
9 !$omp threadprivate (thr1, thr2, /thrs/)
11 !$omp task untied ! { dg-error "enclosing task" }
12 thr1
= thr1
+ 1 ! { dg-error "used in untied task" }
13 thr2
= thr2
+ 2 ! { dg-error "used in untied task" }
14 thr3
= thr3
+ 3 ! { dg-error "used in untied task" }
15 thr4
= thr4
+ 4 ! { dg-error "used in untied task" }