Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/allocatable3.f90 @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } integer, allocatable :: a(:) integer :: i logical :: l l = .false. if (allocated (a)) call abort !$omp parallel private (a) reduction (.or.:l) allocate (a (-7:-5)) l = l.or..not.allocated (a) l = l.or.size(a).ne.3.or.size(a,1).ne.3 a(:) = 0 !$omp do private (a) do i = 1, 7 a(:) = i l = l.or.any (a.ne.i) end do l = l.or.any (a.ne.0) deallocate (a) !$omp end parallel end