Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/string_array_constructor_3.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! PR 62242 ! A subprogram calling an array constructor with an array element whose ! value is the result of calling a character function with both an ! assumed-length argument and an assumed-length result module gfbug implicit none contains function inner(inner_str) result(upper) character(*), intent(IN) :: inner_str character(LEN(inner_str)) :: upper upper = '123' end function subroutine outer(outer_str) character(*), intent(IN) :: outer_str character(5) :: z(1) z = [inner(outer_str)] end subroutine end module gfbug