repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[NFC][RISCV] Remove CFIIndex argument from allocateStack (#117871)
[llvm-project.git]
/
flang
/
test
/
Semantics
/
structconst06.f90
blob
45a0fb97842d3056a575cd59be5db0dd156ec317
1
! RUN: %python %S/test_errors.py %s %flang_fc1
2
! Don't expand scalars for allocatable components.
3
module
m
4
type
t
5
real
,
allocatable
::
a
(:)
6
end type
7
!ERROR: Must be a constant value
8
!ERROR: Scalar value cannot be expanded to shape of array component 'a'
9
type
(
t
) ::
x
=
t
(
0
.)
10
end module