Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / threadprivate1.f90
blob4ee56448aa088fc8c6ee0621ac7a26c200b23076
1 ! { dg-do run }
2 ! { dg-require-effective-target tls_runtime }
4 module threadprivate1
5 double precision :: d
6 !$omp threadprivate (d)
7 end module threadprivate1
9 !$ use omp_lib
10 use threadprivate1
11 logical :: l
12 l = .false.
13 !$omp parallel num_threads (4) reduction (.or.:l)
14 d = omp_get_thread_num () + 6.5
15 !$omp barrier
16 if (d .ne. omp_get_thread_num () + 6.5) l = .true.
17 !$omp end parallel
18 if (l) stop 1
19 end
21 ! { dg-final { cleanup-modules "threadprivate1" } }