URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [allocatable6.f90] - Rev 735
Compare with Previous | Blame | View Log
! PR fortran/46874! { dg-do run }interfacesubroutine sub (a, b, c, d, n)integer :: ninteger, allocatable :: a(:), b(:), c(:), d(:)end subroutineend interfaceinteger, allocatable :: a(:), b(:), c(:), d(:)integer :: i, jallocate (a(50), b(50), c(50), d(50))do i = 1, 50a(i) = 2 + modulo (i, 7)b(i) = 179 - modulo (i, 11)end doc = 0d = 2147483647call sub (a, b, c, d, 50)do i = 1, 50j = 0if (i .eq. 3) thenj = 8else if (i .gt. 1 .and. i .lt. 9) thenj = 7end ifif (c(i) .ne. j) call abortj = 179 - modulo (i, 11)if (i .gt. 1 .and. i .lt. 9) j = iif (d(i) .ne. j) call abortend dodeallocate (a, b, c, d)endsubroutine sub (a, b, c, d, n)integer :: ninteger, allocatable :: a(:), b(:), c(:), d(:)!$omp parallel do shared(a, b) reduction(+:c) reduction(min:d)do i = 1, nc(a(i)) = c(a(i)) + 1d(i) = min(d(i), b(i))d(a(i)) = min(d(a(i)), a(i))end doend
