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/] [nestedfn4.f90] - Rev 273
Compare with Previous | Blame | View Log
program foointeger :: i, j, kinteger :: a(10), c(10)k = 2a(:) = 0call test1call test2do i = 1, 10if (a(i) .ne. 10 * i) call abortend do!$omp parallel do reduction (+:c)do i = 1, 10c = c + aend dodo i = 1, 10if (c(i) .ne. 10 * a(i)) call abortend do!$omp parallel do lastprivate (j)do j = 1, 10, kend doif (j .ne. 11) call abortcontainssubroutine test1integer :: iinteger :: b(10)do i = 1, 10b(i) = iend doc(:) = 0!$omp parallel do reduction (+:a)do i = 1, 10a = a + bend doend subroutine test1subroutine test2!$omp parallel do lastprivate (j)do j = 1, 10, kend doif (j .ne. 11) call abortend subroutine test2end program foo
