3 ! Test the fix for PR79072. The original problem was that an ICE
4 ! would occur in the select type construct. On fixing that, it was
5 ! found that the string length was not being transferred in the
6 ! pointer assignment in the main program.
8 ! Contributed by Neil Carlson <neil.n.carlson@gmail.com>
11 class(*), pointer :: foo
12 character(3), target
:: string
15 type is (character(*))
16 if (foo
.ne
. 'foo') call abort
23 class(*), pointer :: foo
24 character(3), target
:: string
28 class(*), pointer :: res
29 character(3), target
:: string
= 'foo'
34 type is (character(*))
35 if (res
.ne
. 'bar') call abort
37 if (string
.ne
. 'bar') call abort