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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [pr29629.f90] - Blame information for rev 741

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

Line No. Rev Author Line
1 735 jeremybenn
! PR fortran/29629
2
! { dg-do run }
3
 
4
program pr29629
5
  integer :: n
6
  n = 10000
7
  if (any (func(n).ne.10000)) call abort
8
  contains
9
    function func(n)
10
      integer, intent(in) :: n
11
      integer, dimension(n) :: func
12
      integer :: k
13
      func = 0
14
!$omp parallel do private(k), reduction(+:func), num_threads(4)
15
      do k = 1, n
16
        func = func + 1
17
      end do
18
!$omp end parallel do
19
    end function
20
end program

powered by: WebSVN 2.1.0

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