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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [appendix-a/] [a.17.3.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
      SUBROUTINE A17_3_WRONG
3
        INTEGER:: I
4
        REAL:: R
5
        EQUIVALENCE(I,R)
6
!$OMP PARALLEL
7
!$OMP ATOMIC
8
            I=I+1
9
! incorrect because I and R reference the same location
10
! but have different types
11
!$OMP END PARALLEL
12
!$OMP PARALLEL
13
!$OMP ATOMIC
14
            R = R + 1.0
15
! incorrect because I and R reference the same location
16
! but have different types
17
!$OMP END PARALLEL
18
      END SUBROUTINE A17_3_WRONG

powered by: WebSVN 2.1.0

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