1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! OpenMP Version 5.2, Sections 3.2.1 & 5.3
3 subroutine omp_lastprivate(init
)
9 type(my_type
) :: my_var
11 !ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a LASTPRIVATE clause
12 !$omp do lastprivate(a(2))
18 !ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a LASTPRIVATE clause
19 !$omp do lastprivate(my_var%val)