Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/allocatable_scalar_14.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! ! Test the fix for PR64120 in which the initialisation of the ! string length of 's' was not being done. ! ! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> ! call g(1) call g(2) contains subroutine g(x) integer :: x character(len=x), allocatable :: s allocate(s) if (len(s) .ne. x) stop x end subroutine end