1 !RUN: %S/test_errors.sh %s %t %flang -fopenmp
4 ! 2.15.3.2 parallel shared Clause
5 program omp_parallel_shared
6 integer :: i
, j
, a(10), b(10), c(10)
12 type(my_type
) :: my_var
21 !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.
22 !$omp parallel shared(arr,intx,my_var%array(1))
24 c(i
) = a(i
) + b(i
) + k
25 my_var
%array(i
) = k
+intx
29 end program omp_parallel_shared