3 implicit none (type,external)
4 integer, allocatable
:: A(:)
7 !$omp parallel firstprivate(A)
9 if (any (A
/= [1,2,3,4,5])) error
stop
10 A(:) = [99,88,77,66,55]
14 !$omp target firstprivate(A)
15 if (any (A
/= [1,2,3,4,5])) error
stop
16 A(:) = [99,88,77,66,55]
18 if (any (A
/= [1,2,3,4,5])) error
stop
20 !$omp parallel default(firstprivate)
22 if (any (A
/= [1,2,3,4,5])) error
stop
23 A(:) = [99,88,77,66,55]
26 if (any (A
/= [1,2,3,4,5])) error
stop
28 !$omp target defaultmap(firstprivate)
29 if (any (A
/= [1,2,3,4,5])) error
stop
30 A(:) = [99,88,77,66,55]
32 if (any (A
/= [1,2,3,4,5])) error
stop