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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.fortran/] [pr29629.f90] - Rev 300

Go to most recent revision | Compare with Previous | Blame | View Log

! PR fortran/29629
! { dg-do run }

program pr29629
  integer :: n
  n = 10000
  if (any (func(n).ne.10000)) call abort
  contains
    function func(n)
      integer, intent(in) :: n
      integer, dimension(n) :: func
      integer :: k
      func = 0
!$omp parallel do private(k), reduction(+:func), num_threads(4)
      do k = 1, n
        func = func + 1
      end do
!$omp end parallel do
    end function
end program

Go to most recent revision | 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.