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

      SUBROUTINE A23_5_WRONG()
        COMMON /C/ X,Y
! Incorrect: common block C cannot be declared both
! shared and private
!$OMP PARALLEL PRIVATE (/C/), SHARED(/C/)
          ! { dg-error "Symbol 'y' present" "" { target *-*-* } 7 }
          ! { dg-error "Symbol 'x' present" "" { target *-*-* } 7 }
          ! do work here
!$OMP END PARALLEL
      END SUBROUTINE A23_5_WRONG