URL
                    https://opencores.org/ocsvn/openrisc/openrisc/trunk
                
            Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [lastprivate2.f90] - Rev 735
Compare with Previous | Blame | View Log
program lastprivateinteger :: i, kcommon /c/ i, k!$omp parallel num_threads (4)call test1!$omp end parallelif (i .ne. 21 .or. k .ne. 20) call abort!$omp parallel num_threads (4)call test2!$omp end parallelif (i .ne. 64 .or. k .ne. 61) call abort!$omp parallel num_threads (4)call test3!$omp end parallelif (i .ne. 14 .or. k .ne. 11) call abortcall test4call test5call test6call test7call test8call test9call test10call test11call test12containssubroutine test1integer :: i, kcommon /c/ i, k!$omp do lastprivate (i, k)do i = 1, 20k = iend doend subroutine test1subroutine test2integer :: i, kcommon /c/ i, k!$omp do lastprivate (i, k)do i = 7, 61, 3k = iend doend subroutine test2function ret3 ()integer :: ret3ret3 = 3end function ret3subroutine test3integer :: i, kcommon /c/ i, k!$omp do lastprivate (i, k)do i = -10, 11, ret3 ()k = iend doend subroutine test3subroutine test4integer :: j, l!$omp parallel do lastprivate (j, l) num_threads (4)do j = 1, 20l = jend doif (j .ne. 21 .or. l .ne. 20) call abortend subroutine test4subroutine test5integer :: j, ll = 77!$omp parallel do lastprivate (j, l) num_threads (4) firstprivate (l)do j = 7, 61, 3l = jend doif (j .ne. 64 .or. l .ne. 61) call abortend subroutine test5subroutine test6integer :: j, l!$omp parallel do lastprivate (j, l) num_threads (4)do j = -10, 11, ret3 ()l = jend doif (j .ne. 14 .or. l .ne. 11) call abortend subroutine test6subroutine test7integer :: i, kcommon /c/ i, k!$omp parallel do lastprivate (i, k) num_threads (4)do i = 1, 20k = iend doif (i .ne. 21 .or. k .ne. 20) call abortend subroutine test7subroutine test8integer :: i, kcommon /c/ i, k!$omp parallel do lastprivate (i, k) num_threads (4)do i = 7, 61, 3k = iend doif (i .ne. 64 .or. k .ne. 61) call abortend subroutine test8subroutine test9integer :: i, kcommon /c/ i, kk = 77!$omp parallel do lastprivate (i, k) num_threads (4) firstprivate (k)do i = -10, 11, ret3 ()k = iend doif (i .ne. 14 .or. k .ne. 11) call abortend subroutine test9subroutine test10integer :: i, kcommon /c/ i, k!$omp parallel num_threads (4)!$omp do lastprivate (i, k)do i = 1, 20k = iend do!$omp end parallelif (i .ne. 21 .or. k .ne. 20) call abortend subroutine test10subroutine test11integer :: i, kcommon /c/ i, k!$omp parallel num_threads (4)!$omp do lastprivate (i, k)do i = 7, 61, 3k = iend do!$omp end parallelif (i .ne. 64 .or. k .ne. 61) call abortend subroutine test11subroutine test12integer :: i, kcommon /c/ i, kk = 77!$omp parallel num_threads (4)!$omp do lastprivate (i, k) firstprivate (k)do i = -10, 11, ret3 ()k = iend do!$omp end parallelif (i .ne. 14 .or. k .ne. 11) call abortend subroutine test12end program lastprivate

