1 ! RUN: %python %S/test_errors.py %s %flang_fc1
4 !ERROR: An internal subprogram of a pure subprogram must also be pure
7 pure
subroutine t2
! ok
9 elemental
subroutine t3(k
) ! ok
10 integer, intent(in
) :: k
12 !ERROR: An internal subprogram of a pure subprogram must also be pure
13 impure elemental
subroutine t4(k
)
14 integer, intent(in
) :: k
16 !ERROR: An internal subprogram of a pure subprogram must also be pure
17 elemental impure
subroutine t5(k
)
18 integer, intent(in
) :: k
22 elemental
subroutine s2(j
)
23 integer, intent(in
) :: j
25 !ERROR: An internal subprogram of a pure subprogram must also be pure
28 pure
subroutine t2
! ok
30 elemental
subroutine t3(k
) ! ok
31 integer, intent(in
) :: k
33 !ERROR: An internal subprogram of a pure subprogram must also be pure
34 impure elemental
subroutine t4(k
)
35 integer, intent(in
) :: k
37 !ERROR: An internal subprogram of a pure subprogram must also be pure
38 elemental impure
subroutine t5(k
)
39 integer, intent(in
) :: k
43 impure elemental
subroutine s3(j
)
44 integer, intent(in
) :: j
50 elemental
subroutine t3(k
)
51 integer, intent(in
) :: k
53 impure elemental
subroutine t4(k
)
54 integer, intent(in
) :: k
56 elemental impure
subroutine t5(k
)
57 integer, intent(in
) :: k