[LoopReroll] Add an extra defensive check to avoid SCEV assertion.
[llvm-project.git] / flang / test / Semantics / resolve23.f90
blob8a876b0b1d8ad9888c88fcc7334269bf0c0ebbb1
1 ! RUN: %S/test_errors.sh %s %t %flang_fc1
2 ! REQUIRES: shell
3 module m
4 type :: t
5 real :: y
6 end type
7 end module
9 use m
10 implicit type(t)(x)
11 z = x%y !OK: x is type(t)
12 !ERROR: 'w' is not an object of derived type; it is implicitly typed
13 z = w%y
14 end