URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.fortran/] [nestedfn1.f90] - Rev 735
Compare with Previous | Blame | View Log
! { dg-do run }integer :: a, b, ca = 1b = 2c = 3call fooif (a .ne. 7) call abortcontainssubroutine foouse omp_liblogical :: ll = .false.!$omp parallel shared (a) private (b) firstprivate (c) &!$omp num_threads (2) reduction (.or.:l)if (a .ne. 1 .or. c .ne. 3) l = .true.!$omp barrierif (omp_get_thread_num () .eq. 0) thena = 4b = 5c = 6end if!$omp barrierif (omp_get_thread_num () .eq. 1) thenif (a .ne. 4 .or. c .ne. 3) l = .true.a = 7b = 8c = 9else if (omp_get_num_threads () .eq. 1) thena = 7end if!$omp barrierif (omp_get_thread_num () .eq. 0) thenif (a .ne. 7 .or. b .ne. 5 .or. c .ne. 6) l = .true.end if!$omp barrierif (omp_get_thread_num () .eq. 1) thenif (a .ne. 7 .or. b .ne. 8 .or. c .ne. 9) l = .true.end if!$omp end parallelif (l) call abortend subroutine fooend
