1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
4 ! A variable that is part of another variable
5 ! (such as an element of a structure) but is not an array element or
6 ! an array section cannot appear in a DEPEND clause
11 real, allocatable
:: p(:), v1(:), v2(:)
17 type(my_type
) :: my_var
18 allocate( p(N
), v1(N
), v2(N
) )
20 !$omp parallel num_threads(2)
23 !$omp task depend(out:v1)
27 !$omp task depend(out:v2)
31 !ERROR: A variable that is part of another variable (such as an element of a structure) but is not an array element or an array section cannot appear in a DEPEND clause
32 !$omp target nowait depend(in:v1,v2, my_var%a) depend(out:p) &
33 !$omp& map(to:v1,v2) map(from: p)
40 !$omp task depend(in:p)
47 deallocate( p
, v1
, v2
)