view gcc/testsuite/gfortran.dg/class_assign_2.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 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