15 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc12! C726 The length specified for a character statement function or for a 3! statement function dummy argument of type character shall be a constant 4! expression.5subroutine s()6 implicit character(len=3) (c)7 implicit character(len=*) (d)8 stmtFunc1 (x) = x * 329 cStmtFunc2 (x) = "abc"10 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, character named constant, or external function result11 cStmtFunc3 (dummy) = "abc"12 !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, character named constant, or external function result13 dStmtFunc3 (x) = "abc"14end subroutine s15