The case of a constant substring wasn't handled in the parser for data statement constants. Fixes https://github.com/llvm/llvm-project/issues/119005.
8 lines
163 B
Fortran
8 lines
163 B
Fortran
!RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
|
|
!Regression test for bug #119005
|
|
character*2 :: ary4
|
|
!CHECK: DATA ary4/"cd"/
|
|
data ary4/"abcdef"(3:4)/
|
|
end
|
|
|