3 ! Test the fix for PR90498.
5 ! Contributed by Vladimir Fuka <vladimir.fuka@gmail.com>
8 class(*), pointer :: var(:) =>null()
11 type(field_names_a
),pointer :: a(:)
14 allocate (a(1)%var(2), source
= ["hello"," vlad"])
15 allocate (a(2)%var(2), source
= ["HELLO"," VLAD"])
23 type(field_names_a
) :: a(:)
25 select
type (var
=> a(1)%var
)
26 type is (character(*))
27 if (any (var
.ne
. ["hello"," vlad"])) stop 1
32 associate (var
=> a(2)%var
)
34 type is (character(*))
35 if (any (var
.ne
. ["HELLO"," VLAD"])) stop 2