1 ! Test reductions on dummy arguments inside modules.
5 ! { dg-additional-options -Wuninitialized }
12 subroutine param_reduction(var
)
14 integer(kind
=8) :: var
17 !$acc parallel copy(var)
18 !$acc loop reduction(+ : var) gang
19 ! { dg-bogus {'var\.[0-9]+' is used uninitialized} TODO { xfail *-*-* } .-1 }
20 ! { dg-note {'var\.[0-9]+' was declared here} {} { target *-*-* } .-2 }
22 !$acc loop vector reduction(+ : var)
23 ! { dg-bogus {'var\.[0-9]+' may be used uninitialized} TODO { xfail { ! __OPTIMIZE__ } } .-1 }
24 ! { dg-note {'var\.[0-9]+' was declared here} {} { target { ! __OPTIMIZE__ } } .-2 }
30 end subroutine param_reduction
41 call param_reduction (r
)
43 if (r
.ne
. 1010) stop 1