Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/pr32550.f90 @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | 77e2b8dfacca |
line wrap: on
line source
! PR fortran/32550 ! { dg-do run } ! { dg-options "-static-libgcc" { target *-*-darwin* } } integer, pointer, save :: ptr integer, target :: targ integer :: e !$omp threadprivate(ptr) e = 0 targ = 42 !$omp parallel shared(targ) !$omp single ptr => targ !$omp end single copyprivate(ptr) if (ptr.ne.42) then !$omp atomic e = e + 1 end if !$omp end parallel if (e.ne.0) call abort end