summaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.2.f90
blob: 1145e54102614c5d0104c530c83524fc96dec955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do run }

      PROGRAM A28_2
        COMMON /BLOCK2/ X
        X = 1.0
!$OMP PARALLEL PRIVATE (X)
          X = 2.0
          CALL SUB()
!$OMP END PARALLEL
       CONTAINS
        SUBROUTINE SUB()
        COMMON /BLOCK2/ Y
        PRINT *,X                 ! X is undefined
        PRINT *,Y                 ! Y is undefined
        END SUBROUTINE SUB
      END PROGRAM A28_2