annotate gcc/testsuite/gfortran.dg/char_component_initializer_1.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! Check the fix for PR31487 in which the derived type default initializer
kono
parents:
diff changeset
3 ! would be padded out with nulls instead of spaces.
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Reported by Harald Anlauf <anlauf@gmx.de>
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 program gfcbug62
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/)
kono
parents:
diff changeset
10 type t_ctl
kono
parents:
diff changeset
11 character(len=16) :: tdefi(2) = (/'0z1jan0000','1hr '/)
kono
parents:
diff changeset
12 end type t_ctl
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 type(t_ctl) :: ctl
kono
parents:
diff changeset
15 integer :: i,k
kono
parents:
diff changeset
16
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 if (tdefi(1) .ne. ctl%tdefi(1)) STOP 1
111
kono
parents:
diff changeset
18 end program gfcbug62