1 !RUN: %S/test_errors.sh %s %t %flang -fopenmp
4 ! 2.15.3.3 parallel private Clause
5 program omp_parallel_private
6 integer :: i
, j
, a(10), b(10), c(10)
12 type(my_type
) :: my_var
14 !ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a PRIVATE or SHARED clause or on the ALLOCATE directive.
15 !$omp parallel private(my_var%array)
17 c(i
) = a(i
) + b(i
) + k
21 end program omp_parallel_private