URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [sharing-1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-require-effective-target tls }integer :: thrpriv, thr, i, j, s, g1, g2, minteger, dimension (6) :: pcommon /thrblk/ thrcommon /gblk/ g1save thrpriv, g2!$omp threadprivate (/thrblk/, thrpriv)s = 1!$omp parallel do default (none) &!$omp & private (p) shared (s) ! { dg-error "enclosing parallel" }do i = 1, 64call foo (thrpriv) ! Predetermined - threadprivatecall foo (thr) ! Predetermined - threadprivatecall foo (i) ! Predetermined - omp do iteration vardo j = 1, 64 ! Predetermined - sequential loopcall foo (j) ! iteration variableend docall bar ((/ (k * 4, k = 1, 8) /)) ! Predetermined - implied doforall (l = 1 : i) &! Predetermined - forall indicep(l) = 6 ! Explicitly determined - privatecall foo (s) ! Explicitly determined - sharedcall foo (g1) ! { dg-error "not specified in" }call foo (g2) ! { dg-error "not specified in" }call foo (m) ! { dg-error "not specified in" }end doend
