Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
131 | 1 ! { dg-do link } |
2 ! | |
3 ! PR 86484:[OOP] Undefined symbol when using polymorphic intrinsic assignment | |
4 ! | |
5 ! Contributed by Rich Townsend <townsend@astro.wisc.edu> | |
6 | |
7 program test_assign | |
8 | |
9 implicit none | |
10 | |
11 type :: foo_t | |
12 end type | |
13 | |
14 type, extends (foo_t) :: bar_t | |
15 end type | |
16 | |
17 class(foo_t), allocatable :: f | |
18 type(bar_t) :: b | |
19 | |
20 f = b | |
21 | |
22 end |