1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
3 ! 2.15.3 Although variables in common blocks can be accessed by use association
4 ! or host association, common block names cannot. As a result, a common block
5 ! name specified in a data-sharing attribute clause must be declared to be a
6 ! common block in the same scoping unit in which the data-sharing attribute
13 !$omp threadprivate(/tc/)
18 !ERROR: COMMON block must be declared in the same scoping unit in which the OpenMP directive or clause appears
19 !$omp parallel shared(/c/)
30 !ERROR: COMMON block must be declared in the same scoping unit in which the OpenMP directive or clause appears
31 !$omp end single copyprivate(/tc/)
35 ! Common block names may be used inside nested OpenMP directives.
37 !$omp parallel copyin(/tc/)
45 !$omp end single copyprivate(/tc/)