Retro68/gcc/libgomp/testsuite/libgomp.fortran/allocatable7.f90

17 lines
326 B
Fortran
Raw Normal View History

2012-03-27 23:13:14 +00:00
! { dg-do run }
integer, allocatable :: a(:)
logical :: l
l = .false.
!$omp parallel firstprivate (a) reduction (.or.:l)
l = allocated (a)
allocate (a(10))
l = l .or. .not. allocated (a)
a = 10
if (any (a .ne. 10)) l = .true.
deallocate (a)
l = l .or. allocated (a)
!$omp end parallel
2018-12-28 15:30:48 +00:00
if (l) STOP 1
2012-03-27 23:13:14 +00:00
end