blob: 8a876b0b1d8ad9888c88fcc7334269bf0c0ebbb1 [file] [log] [blame]
! RUN: %S/test_errors.sh %s %t %flang_fc1
! REQUIRES: shell
module m
type :: t
real :: y
end type
end module
use m
implicit type(t)(x)
z = x%y !OK: x is type(t)
!ERROR: 'w' is not an object of derived type; it is implicitly typed
z = w%y
end