[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / OpenMP / omp-copyin05.f90
blob142d5a7345c6e55e721c28cffb751ac569bce9bf
1 ! RUN: %python %S/../test_errors.py %s %flang -fopenmp
2 ! OpenMP Version 4.5
3 ! 2.15.4.1 copyin Clause
4 ! A common block name that appears in a copyin clause must be declared to be
5 ! a common block in the same scoping unit in which the copyin clause appears.
7 subroutine copyin()
8 call copyin_clause()
10 contains
12 subroutine copyin_clause()
13 integer :: a = 20
14 common /cmn/ a
16 !$omp threadprivate(/cmn/)
18 !$omp parallel copyin(/cmn/)
19 print *, a
20 !$omp end parallel
21 end subroutine copyin_clause
23 end subroutine copyin