bolt/deps/llvm-18.1.8/flang/test/Semantics/structconst06.f90

11 lines
300 B
Fortran
Raw Normal View History

2025-02-14 19:21:04 +01:00
! RUN: %python %S/test_errors.py %s %flang_fc1
! Don't expand scalars for allocatable components.
module m
type t
real, allocatable :: a(:)
end type
!ERROR: Must be a constant value
!ERROR: Scalar value cannot be expanded to shape of array component 'a'
type(t) :: x = t(0.)
end module