view gcc/testsuite/gfortran.dg/class_assign_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 link }
!
! PR 86484:[OOP] Undefined symbol when using polymorphic intrinsic assignment
!
! Contributed by Rich Townsend <townsend@astro.wisc.edu>

program test_assign

  implicit none

  type :: foo_t
  end type

  type, extends (foo_t) :: bar_t
  end type

  class(foo_t), allocatable :: f
  type(bar_t)               :: b

  f = b

end