Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/threadprivate1.f90 @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! { dg-require-effective-target tls_runtime } module threadprivate1 double precision :: d !$omp threadprivate (d) end module threadprivate1 !$ use omp_lib use threadprivate1 logical :: l l = .false. !$omp parallel num_threads (4) reduction (.or.:l) d = omp_get_thread_num () + 6.5 !$omp barrier if (d .ne. omp_get_thread_num () + 6.5) l = .true. !$omp end parallel if (l) call abort () end ! { dg-final { cleanup-modules "threadprivate1" } }