1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! C722 A function name shall not be declared with an asterisk type-param-value
3 ! unless it is of type CHARACTER and is the name of a dummy function or the
4 ! name of the result of an external function.
10 type(derived(34)) :: a
12 procedure(character(len
=*)) :: externCharFunc
13 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, character named constant, or external function result
14 procedure(type(derived(param
=*))) :: externDerivedFunc
17 subroutine subr(dummyFunc
)
18 character(len
=*) :: dummyFunc
24 type(derived(param
=4)) :: works
27 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, character named constant, or external function result
29 character(len
=*) :: fails1
32 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, character named constant, or external function result
34 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, character named constant, or external function result
35 type(derived(param
=*)) :: fails2