Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/deferred_character_12.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
! { dg-do run } ! ! Tests the fix for PR63232 ! ! Contributed by Balint Aradi <baradi09@gmail.com> ! module mymod implicit none type :: wrapper character(:), allocatable :: string end type wrapper contains subroutine sub2(mystring) character(:), allocatable, intent(out) :: mystring mystring = "test" end subroutine sub2 end module mymod program test use mymod implicit none type(wrapper) :: mywrapper call sub2(mywrapper%string) if (.not. allocated(mywrapper%string)) call abort if (trim(mywrapper%string) .ne. "test") call abort end program test