hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / dec_structure_12.f90
blob720d6ddc5d072a6a2c2f0d3dcc53dba64f269038
1 ! { dg-do compile }
2 ! { dg-options "-fdec-structure" }
4 ! Test a regression where multiple anonymous structures failed to
5 ! receive unique internal names.
8 implicit none
10 structure /s/
12 structure record0 ! (2)
13 integer i
14 end structure
16 structure record1 ! regression: Type definition was already defined at (2)
17 real r
18 end structure
20 end structure
22 record /s/ var
24 var.record0.i = 0
25 var.record1.r = 0.0
27 end