1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! OpenMP Version 5.2, Sections 3.2.1 & 5.3
3 subroutine omp_firstprivate(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 FIRSTPRIVATE clause
12 !$omp parallel firstprivate(a(2))
16 !ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a FIRSTPRIVATE clause
17 !$omp parallel firstprivate(my_var%val)