summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.26.2.f90
blob: 3d43424b605c0d567ac49ceef2674314449198de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! { dg-do compile }

       MODULE A26_2
       REAL A
       CONTAINS
         SUBROUTINE G(K)
           REAL K
           A = K ! This is A in module A26_2, not the private
                  ! A in F
         END SUBROUTINE G
         SUBROUTINE F(N)
         INTEGER N
         REAL A
            INTEGER I
!$OMP PARALLEL DO PRIVATE(A)
              DO I = 1,N
                A=I
                CALL G(A*2)
              ENDDO
!$OMP END PARALLEL DO
          END SUBROUTINE F
      END MODULE A26_2
! { dg-final { cleanup-modules "A26_2" } }