[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / data10.f90
bloba46465c2f6acb608b83a89b9096fb862ac76dad9
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 type :: t
3 integer :: n
4 end type
5 type(t) :: x
6 real, target, save :: a(1)
7 real, parameter :: arrparm(1) = [3.14159]
8 real, pointer :: p
9 real :: y
10 data x/t(1)/
11 data p/a(1)/
12 !ERROR: DATA statement value initializes 'y' with an array
13 data y/arrparm/
14 end