blob: d1a216a9f4675ae75451200c2828678956458120 [file] [log] [blame]
! { dg-do run }
! { dg-require-effective-target tls_runtime }
!$ use omp_lib
integer, save, allocatable :: a(:, :)
logical :: l
!$omp threadprivate (a)
if (allocated (a)) stop 1
l = .false.
!$omp parallel copyin (a) num_threads (4) reduction(.or.:l)
l = l.or.allocated (a)
!$omp end parallel
if (l.or.allocated (a)) stop 2
end