mirror of
https://github.com/autc04/Retro68.git
synced 2024-08-19 03:29:10 +00:00
15 lines
348 B
Fortran
15 lines
348 B
Fortran
|
! { dg-do run }
|
||
|
! { dg-require-effective-target tls_runtime }
|
||
|
!$ use omp_lib
|
||
|
|
||
|
integer, save, allocatable :: a(:, :)
|
||
|
logical :: l
|
||
|
!$omp threadprivate (a)
|
||
|
if (allocated (a)) call abort
|
||
|
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)) call abort
|
||
|
end
|