URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [appendix-a/] [a.28.4.f90] - Rev 735
Compare with Previous | Blame | View Log
! { dg-do run }PROGRAM A28_4INTEGER I, JINTEGER A(100), B(100)EQUIVALENCE (A(51), B(1))!$OMP PARALLEL DO DEFAULT(PRIVATE) PRIVATE(I,J) LASTPRIVATE(A)DO I=1,100DO J=1,100B(J) = J - 1ENDDODO J=1,100A(J) = J ! B becomes undefined at this pointENDDODO J=1,50B(J) = B(J) + 1 ! B is undefined! A becomes undefined at this pointENDDOENDDO!$OMP END PARALLEL DO ! The LASTPRIVATE write for A has! undefined resultsPRINT *, B ! B is undefined since the LASTPRIVATE! write of A was not definedEND PROGRAM A28_4
