1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Ensure that DO CONCURRENT purity checks apply to specific procedures
3 ! in the case of calls to generic interfaces.
6 module procedure
:: ps
, ips
11 generic
:: purity
=> pb
, ipb
15 integer, intent(in
) :: n
17 impure
subroutine ips(a
)
20 pure
subroutine pb(x
,n
)
21 class(t
), intent(in
) :: x
22 integer, intent(in
) :: n
24 impure
subroutine ipb(x
,n
)
25 class(t
), intent(in
) :: x
36 !ERROR: Call to an impure procedure is not allowed in DO CONCURRENT
38 !ERROR: Call to an impure procedure is not allowed in DO CONCURRENT
42 !ERROR: Call to an impure procedure component is not allowed in DO CONCURRENT
44 !ERROR: Call to an impure procedure component is not allowed in DO CONCURRENT