summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.23.4.f90
blob: 8c6e2281d17ffba645780f06224f071c5130e000 (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }

        SUBROUTINE A23_4_WRONG()
        COMMON /C/ X,Y
! Incorrect because X is a constituent element of C
!$OMP PARALLEL PRIVATE(/C/), SHARED(X)	! { dg-error "Symbol 'x' present" }
          ! do work here
!$OMP END PARALLEL
      END SUBROUTINE A23_4_WRONG