4 ! Output nicer error message for invalid assumed-len character function result
5 ! depending on what kind of contained procedure it is.
10 function assumed_len(x
) ! { dg-error "module procedure" }
11 character(*) assumed_len
12 integer, intent(in
) :: x
13 end function assumed_len
21 function assumed_len(x
) ! { dg-error "internal function" }
22 character(*) assumed_len
23 integer, intent(in
) :: x
24 end function assumed_len
31 function assumed_len(x
) ! { dg-error "internal function" }
32 character(*) assumed_len
33 integer, intent(in
) :: x
34 end function assumed_len