Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/stack.f90 @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } program stack implicit none integer id integer ilocs(2) integer omp_get_thread_num, foo call omp_set_num_threads (2) !$omp parallel private (id) id = omp_get_thread_num() + 1 ilocs(id) = foo() !$omp end parallel ! Check that the two threads are not sharing a location for ! the array x in foo() if (ilocs(1) .eq. ilocs(2)) call abort end program stack integer function foo () implicit none real x(100,100) foo = loc(x) end function foo