• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1! RUN: %S/test_errors.sh %s %t %f18
2! 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 * 32
9  cStmtFunc2 (x) = "abc"
10  !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, named constant, or external function result
11  cStmtFunc3 (dummy) = "abc"
12  !ERROR: An assumed (*) type parameter may be used only for a (non-statement function) dummy argument, associate name, named constant, or external function result
13  dStmtFunc3 (x) = "abc"
14end subroutine s
15