summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/gomp/appendix-a/a.17.1.f90
blob: 8fd600176caccda570051d4975f5bc80921b6ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
      SUBROUTINE A17_1_WRONG()
        INTEGER:: I
        REAL:: R
        EQUIVALENCE(I,R)
!$OMP PARALLEL
!$OMP ATOMIC
            I=I+1
!$OMP ATOMIC
            R = R + 1.0
! incorrect because I and R reference the same location
! but have different types
!$OMP END PARALLEL
        END SUBROUTINE A17_1_WRONG