Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/associate_52.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 ! { dg-do compile } |
2 ! | |
3 ! PR fortran/93427 | |
4 ! | |
5 ! Contributed by Andrew Benson | |
6 ! | |
7 module a | |
8 | |
9 type :: t | |
10 end type t | |
11 | |
12 contains | |
13 | |
14 recursive function b() | |
15 class(t), pointer :: b | |
16 type(t) :: c | |
17 allocate(t :: b) | |
18 select type (b) | |
19 type is (t) | |
20 b=c | |
21 end select | |
22 end function b | |
23 | |
24 end module a |