Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/alloc_comp_class_2.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do run } ! ! PR 46838: [OOP] Initialization of polymorphic allocatable components ! ! Contributed by Salvatore Filippone <sfilippone@uniroma2.it> program bug28 implicit none type indx_map end type type desc_type integer, allocatable :: matrix_data class(indx_map), allocatable :: indxmap end type type(desc_type) :: desc_a call cdall(desc_a) contains subroutine cdall(desc) type(desc_type), intent(out) :: desc if (allocated(desc%indxmap)) STOP 1 end subroutine cdall end program