1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
3 ! C726 The length specified for a character statement function or for a
4 ! statement function dummy argument of type character shall be a constant
7 implicit character(len
=3) (c
)
8 implicit character(len
=*) (d
)
10 cStmtFunc2 (x
) = "abc"
11 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, named constant, or external function result
12 cStmtFunc3 (dummy
) = "abc"
13 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, named constant, or external function result
14 dStmtFunc3 (x
) = "abc"