1! RUN: %python %S/test_errors.py %s %flang_fc1 2! C709 An assumed-type entity shall be a dummy data object that does not have 3! the ALLOCATABLE, CODIMENSION, INTENT (OUT), POINTER, or VALUE attribute and 4! is not an explicit-shape array. 5subroutine s() 6 !ERROR: Assumed-type entity 'starvar' must be a dummy argument 7 type(*) :: starVar 8 9 contains 10 subroutine inner1(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 11 type(*) :: arg1 ! OK 12 type(*), dimension(*) :: arg2 ! OK 13 !ERROR: Assumed-type argument 'arg3' cannot have the ALLOCATABLE attribute 14 type(*), allocatable :: arg3 15 !ERROR: Assumed-type argument 'arg4' cannot be a coarray 16 type(*), codimension[*] :: arg4 17 !ERROR: Assumed-type argument 'arg5' cannot be INTENT(OUT) 18 type(*), intent(out) :: arg5 19 !ERROR: Assumed-type argument 'arg6' cannot have the POINTER attribute 20 type(*), pointer :: arg6 21 !ERROR: Assumed-type argument 'arg7' cannot have the VALUE attribute 22 type(*), value :: arg7 23 !ERROR: Assumed-type array argument 'arg8' must be assumed shape, assumed size, or assumed rank 24 type(*), dimension(3) :: arg8 25 end subroutine inner1 26end subroutine s 27