5 ! Contributed by Reinhold Bader
7 module mod_alloc_scalar_01
9 subroutine construct(this
)
10 class(*), allocatable
, intent(out
) :: this
13 allocate(this
, source
=this_i
)
17 program alloc_scalar_01
18 use mod_alloc_scalar_01
20 class(*), allocatable
:: mystuff
22 call construct(mystuff
)
23 call construct(mystuff
)
27 if (mystuff
== 4) then