comparison gcc/testsuite/gfortran.dg/move_alloc_13.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
14 allocate(y(2), source=[t2(2), t2(3)]) 14 allocate(y(2), source=[t2(2), t2(3)])
15 call func2(y,z) 15 call func2(y,z)
16 16
17 select type(z) 17 select type(z)
18 type is(t2) 18 type is(t2)
19 if (any (z(:)%a /= [2, 3])) call abort() 19 if (any (z(:)%a /= [2, 3])) STOP 1
20 class default 20 class default
21 call abort() 21 STOP 2
22 end select 22 end select
23 23
24 contains 24 contains
25 function func(x) 25 function func(x)
26 class (t), allocatable :: x(:), func(:) 26 class (t), allocatable :: x(:), func(:)