27 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc12! 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 argument7 type(*) :: starVar8 9 contains10 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 attribute14 type(*), allocatable :: arg315 !ERROR: Assumed-type argument 'arg4' cannot be a coarray16 type(*), codimension[*] :: arg417 !ERROR: Assumed-type argument 'arg5' cannot be INTENT(OUT)18 type(*), intent(out) :: arg519 !ERROR: Assumed-type argument 'arg6' cannot have the POINTER attribute20 type(*), pointer :: arg621 !ERROR: Assumed-type argument 'arg7' cannot have the VALUE attribute22 type(*), value :: arg723 !ERROR: Assumed-type array argument 'arg8' must be assumed shape, assumed size, or assumed rank24 type(*), dimension(3) :: arg825 end subroutine inner126end subroutine s27