Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/char_result_9.f90 @ 120:f93fa5091070
fix conv1.c
author | mir3636 |
---|---|
date | Thu, 08 Mar 2018 14:53:42 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! PR 18883: Fake result variables of non-constant length, in module module foo contains function s_to_c(chars) character, pointer :: chars(:) character(len=len(chars)) :: s_to_c s_to_c = 'a' end function s_to_c end module foo program huj use foo implicit none character, pointer :: c(:) character(3) :: s allocate(c(5)) c = (/"a", "b", "c" /) s = s_to_c(c) end program huj