2 ! { dg-additional-options "-g" }
6 integer function compute_sum4 (step
,n
) result(sum
)
11 !$omp parallel do reduction(+:sum) private(i)
12 !$omp unroll partial(5)
16 end function compute_sum4
17 end module test_functions
24 result
= compute_sum4 (1, 100)
25 if (result
.ne
. 100) then
29 result
= compute_sum4 (1, 9)
30 if (result
.ne
. 9) then
34 result
= compute_sum4 (2, 96)
35 if (result
.ne
. 48) then
39 result
= compute_sum4 (-2, -98)
40 if (result
.ne
. 50) then
44 result
= compute_sum4 (-2, -100)
45 if (result
.ne
. 51) then