[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Semantics / data17.f90
blob8ea9d785a96fb837880f831b46794245a25f794a
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 character(4) a, b, c, d, e
3 !WARNING: DATA statement value '"abcde"' for 'a' has the wrong length
4 data a(1:4)/'abcde'/
5 !WARNING: DATA statement value '"abc"' for 'b' has the wrong length
6 data b(1:4)/'abc'/
7 data c/'abcde'/ ! not a substring, conforms
8 data d/'abc'/ ! not a substring, conforms
9 !ERROR: DATA statement designator 'e(1_8:5_8)' is out of range
10 data e(1:5)/'xyz'/
11 end