URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [appendix-a/] [a.25.1.f90] - Rev 316
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
SUBROUTINE A25
INTEGER OMP_GET_THREAD_NUM
REAL A(20)
INTEGER MYTHREAD
!$OMP PARALLEL SHARED(A) PRIVATE(MYTHREAD)
MYTHREAD = OMP_GET_THREAD_NUM()
IF (MYTHREAD .EQ. 0) THEN
CALL SUB(A(1:10)) ! compiler may introduce writes to A(6:10)
ELSE
A(6:10) = 12
ENDIF
!$OMP END PARALLEL
END SUBROUTINE A25
SUBROUTINE SUB(X)
REAL X(*)
X(1:5) = 4
END SUBROUTINE SUB
Go to most recent revision | Compare with Previous | Blame | View Log