annotate gcc/testsuite/gfortran.dg/blockdata_3.f90 @ 132:d34655255c78

update gcc-8.2
author mir3636
date Thu, 25 Oct 2018 10:21:07 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! { dg-options "-W -Wall" }
kono
parents:
diff changeset
3 ! Tests the fix for PR29539, in which the derived type in a blockdata
kono
parents:
diff changeset
4 ! cause an ICE. With the fix for PR29565, this now compiles and runs
kono
parents:
diff changeset
5 ! correctly.
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 ! Contributed by Bernhard Fischer <aldot@gcc.gnu.org>
kono
parents:
diff changeset
8 !
kono
parents:
diff changeset
9 block data
kono
parents:
diff changeset
10 common /c/ d(5), cc
kono
parents:
diff changeset
11 type c_t
kono
parents:
diff changeset
12 sequence
kono
parents:
diff changeset
13 integer i
kono
parents:
diff changeset
14 end type c_t
kono
parents:
diff changeset
15 type (c_t) :: cc
kono
parents:
diff changeset
16 data d /5*1./
kono
parents:
diff changeset
17 data cc%i /5/
kono
parents:
diff changeset
18 end
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 common /c/ d(5), cc
kono
parents:
diff changeset
21 type c_t
kono
parents:
diff changeset
22 sequence
kono
parents:
diff changeset
23 integer i
kono
parents:
diff changeset
24 end type c_t
kono
parents:
diff changeset
25 type (c_t) :: cc
kono
parents:
diff changeset
26 print *, d
kono
parents:
diff changeset
27 print *, cc
kono
parents:
diff changeset
28 end