Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/threadprivate1.f90 @ 155:da32f4b04d38
fix __code name conflict
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 17:51:46 +0900 |
parents | 1830386684a0 |
children |
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) stop 1 end ! { dg-final { cleanup-modules "threadprivate1" } }