1*6c1ac141SIvan Zhechev! RUN: %python %S/test_errors.py %s %flang_fc1 264ab3302SCarolineConcatto! C709 An assumed-type entity shall be a dummy data object that does not have 364ab3302SCarolineConcatto! the ALLOCATABLE, CODIMENSION, INTENT (OUT), POINTER, or VALUE attribute and 464ab3302SCarolineConcatto! is not an explicit-shape array. 564ab3302SCarolineConcattosubroutine s() 664ab3302SCarolineConcatto !ERROR: Assumed-type entity 'starvar' must be a dummy argument 764ab3302SCarolineConcatto type(*) :: starVar 864ab3302SCarolineConcatto 964ab3302SCarolineConcatto contains 1064ab3302SCarolineConcatto subroutine inner1(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 1164ab3302SCarolineConcatto type(*) :: arg1 ! OK 1264ab3302SCarolineConcatto type(*), dimension(*) :: arg2 ! OK 1364ab3302SCarolineConcatto !ERROR: Assumed-type argument 'arg3' cannot have the ALLOCATABLE attribute 1464ab3302SCarolineConcatto type(*), allocatable :: arg3 1564ab3302SCarolineConcatto !ERROR: Assumed-type argument 'arg4' cannot be a coarray 1664ab3302SCarolineConcatto type(*), codimension[*] :: arg4 1764ab3302SCarolineConcatto !ERROR: Assumed-type argument 'arg5' cannot be INTENT(OUT) 1864ab3302SCarolineConcatto type(*), intent(out) :: arg5 1964ab3302SCarolineConcatto !ERROR: Assumed-type argument 'arg6' cannot have the POINTER attribute 2064ab3302SCarolineConcatto type(*), pointer :: arg6 2164ab3302SCarolineConcatto !ERROR: Assumed-type argument 'arg7' cannot have the VALUE attribute 2264ab3302SCarolineConcatto type(*), value :: arg7 23a0a1f519STim Keith !ERROR: Assumed-type array argument 'arg8' must be assumed shape, assumed size, or assumed rank 2464ab3302SCarolineConcatto type(*), dimension(3) :: arg8 2564ab3302SCarolineConcatto end subroutine inner1 2664ab3302SCarolineConcattoend subroutine s 27