1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! The ASSOCIATE name preserves the association with the selector established
4 ! in the associate statement. Therefore it is incorrect to change the
5 ! data-sharing attribute of the name.
7 subroutine assoc_private(x
)
10 !ERROR: Variable 'z' in ASSOCIATE cannot be in a PRIVATE clause
11 !$omp parallel private(z)
16 subroutine assoc_firstprivate(x
)
19 !ERROR: Variable 'z' in ASSOCIATE cannot be in a FIRSTPRIVATE clause
20 !$omp parallel firstprivate(z)
25 subroutine assoc_lastprivate(x
)
28 !ERROR: Variable 'z' in ASSOCIATE cannot be in a LASTPRIVATE clause
29 !$omp parallel sections lastprivate(z)
30 !$omp end parallel sections