2 ! { dg-options "-fopenmp" }
7 integer omp_get_thread_num
, foo
8 call omp_set_num_threads (2)
9 !$omp parallel private (id)
10 id
= omp_get_thread_num() + 1
13 ! Check that the two threads are not sharing a location for
14 ! the array x in foo()
15 if (ilocs(1) .eq
. ilocs(2)) call abort
16 end program openmp_stack
18 integer function foo ()