[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / flang / test / Semantics / resolve75.f90
blob77c8065e86f9e9312cc84eba98e41d038c3c3ad9
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
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.
5 subroutine 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, character 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, character named constant, or external function result
13 dStmtFunc3 (x) = "abc"
14 end subroutine s