OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [appendix-a/] [a.17.3.f90] - Rev 816

Compare with Previous | Blame | View Log

! { dg-do compile }
      SUBROUTINE A17_3_WRONG
        INTEGER:: I
        REAL:: R
        EQUIVALENCE(I,R)
!$OMP PARALLEL
!$OMP ATOMIC
            I=I+1
! incorrect because I and R reference the same location
! but have different types
!$OMP END PARALLEL
!$OMP PARALLEL
!$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_3_WRONG

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.