[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / resolve75.f90
blob23269030653eac1fe643fa983685f38ee270aeab
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
2 ! REQUIRES: shell
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
5 ! expression.
6 subroutine s()
7 implicit character(len=3) (c)
8 implicit character(len=*) (d)
9 stmtFunc1 (x) = x * 32
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"
15 end subroutine s