Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/allocate_alloc_opt_13.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/51953 ! ! type t end type t class(t), allocatable :: a, c(:), e(:) class(t), pointer :: b, d(:) allocate (a, b, source=c(1)) allocate (c(4), d(6), source=e) allocate (a, b, mold=f()) allocate (c(1), d(6), mold=g()) allocate (a, b, source=f()) allocate (c(1), d(6), source=g()) contains function f() class(t), allocatable :: f end function function g() class(t), allocatable :: g(:) end function end