Simplify comparison of attrs in IPA ICF.
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / allocatable8.f90
blob84b18f34940f6fe35c70eed6568477745ea334f7
1 ! { dg-do run }
2 ! { dg-require-effective-target tls_runtime }
3 !$ use omp_lib
5 integer, save, allocatable :: a(:, :)
6 logical :: l
7 !$omp threadprivate (a)
8 if (allocated (a)) STOP 1
9 l = .false.
10 !$omp parallel copyin (a) num_threads (4) reduction(.or.:l)
11 l = l.or.allocated (a)
12 !$omp end parallel
13 if (l.or.allocated (a)) STOP 2
14 end