1 ! RUN: %python %S/../test_errors.py %s %flang_fc1 -fopenmp
4 ! The loop iteration variable may not appear in a threadprivate directive.
8 integer, save:: i
, j
, k
,n
9 !$omp threadprivate(k,j,i)
11 !ERROR: Loop iteration variable i is not allowed in THREADPRIVATE.
13 !ERROR: Loop iteration variable j is not allowed in THREADPRIVATE.
22 integer, save :: i
, j
, k
23 !$omp threadprivate(k,j,i)
25 !ERROR: Loop iteration variable i is not allowed in THREADPRIVATE.
33 end subroutine omp_do1
37 !$omp threadprivate(k)
38 !$omp threadprivate(j)
42 !$omp do ordered(1) collapse(1)
43 !ERROR: Loop iteration variable k is not allowed in THREADPRIVATE.
52 end subroutine omp_do2
56 !$omp threadprivate(i)
61 !ERROR: Loop iteration variable i is not allowed in THREADPRIVATE.
69 end subroutine omp_do3
73 integer, save:: i
, j
, k
,n
74 !$omp threadprivate(i)
75 !$omp threadprivate(j)
85 !ERROR: Loop iteration variable i is not allowed in THREADPRIVATE.
97 !ERROR: Loop iteration variable j is not allowed in THREADPRIVATE.