1 !RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.15.3.3 parallel private Clause
4 program omp_parallel_private
5 integer :: i
, j
, a(10), b(10), c(10)
11 type(my_type
) :: my_var
20 !ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a PRIVATE or SHARED clause
21 !$omp parallel private(arr(i),intx)
23 c(i
) = a(i
) + b(i
) + k
24 my_var
%array(i
) = k
+intx
28 end program omp_parallel_private